src/main/java/org/thegalactic/lattice/ConceptLattice.java
@Deprecated
    public ConceptLattice iceberg(float threshold) {
        ConceptLattice l = new ConceptLattice();
        Concept b = (Concept) this.bottom();
        int card = b.getSetB().size();
        for (Object node : this.getNodes()) {
            Concept cpt = (Concept) node;
            if ((float) cpt.getSetB().size() / (float) card >= threshold) {
                l.addNode((Node) node);
            }
        }
        for (Object f : l.getNodes()) {
            for (Object t : l.getNodes()) {
                if (this.containsEdge((Node) f, (Node) t)) {
                    l.addEdge((Node) f, (Node) t);
                }
            }
        }
        Node t = this.top();
        l.addNode(t);
        // TODO use Node<Concept>
        for (Object node : l.getWells()) {
            if (!node.equals(t)) {
                l.addEdge((Node) node, t);
            }
        }
        return l;
    }
/**
     * Returns iceberg lattice whose concept contains enough observations.
     *
     * @deprecated use getConceptIceberg method from ClosureSystem class
     * instead. Are kept only concept whose number of observation is over
     * threshold. A top node is added to keep the lattice structure.
     *
     * @param threshold used to determine nodes to be kept.
     *
     * @return iceberg lattice whose concept contains enough observations.
     */
Returns iceberg lattice whose concept contains enough observations.
@deprecated use getConceptIceberg method from ClosureSystem class
instead. Are kept only concept whose number of observation is over
threshold. A top node is added to keep the lattice structure.

@param threshold used to determine nodes to be kept.

@return iceberg lattice whose concept contains enough observations.
Returns iceberg lattice whose concept contains enough observations . @deprecated use getConceptIceberg method from ClosureSystem class instead . Are kept only concept whose number of observation is over threshold . A top node is added to keep the lattice structure . @param threshold used to determine nodes to be kept . @return iceberg lattice whose concept contains enough observations .
@Deprecated
    public ConceptLattice iceberg(float threshold) {
        ConceptLattice l = new ConceptLattice();
        Concept b = (Concept) this.bottom();
        int card = b.getSetB().size();
        for (Object node : this.getNodes()) {
            Concept cpt = (Concept) node;
            if ((float) cpt.getSetB().size() / (float) card >= threshold) {
                l.addNode((Node) node);
            }
        }
        for (Object f : l.getNodes()) {
            for (Object t : l.getNodes()) {
                if (this.containsEdge((Node) f, (Node) t)) {
                    l.addEdge((Node) f, (Node) t);
                }
            }
        }
        Node t = this.top();
        l.addNode(t);
        for (Object node : l.getWells()) {
            if (!node.equals(t)) {
                l.addEdge((Node) node, t);
            }
        }
        return l;
    }
@ Deprecated public ConceptLattice iceberg ( float threshold ) { ConceptLattice l = new ConceptLattice ( ) ; Concept b = ( Concept ) this . bottom ( ) ; int card = b . getSetB ( ) . size ( ) ; for ( Object node : this . getNodes ( ) ) { Concept cpt = ( Concept ) node ; if ( ( float ) cpt . getSetB ( ) . size ( ) / ( float ) card >= threshold ) { l . addNode ( ( Node ) node ) ; } } for ( Object f : l . getNodes ( ) ) { for ( Object t : l . getNodes ( ) ) { if ( this . containsEdge ( ( Node ) f , ( Node ) t ) ) { l . addEdge ( ( Node ) f , ( Node ) t ) ; } } } Node t = this . top ( ) ; l . addNode ( t ) ; for ( Object node : l . getWells ( ) ) { if ( ! node . equals ( t ) ) { l . addEdge ( ( Node ) node , t ) ; } } return l ; }
Returns iceberg lattice whose concept contains enough observations.
Returns iceberg lattice whose concept contains enough observations .
// TODO use Node<Concept>