|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstatalign.postprocess.plugins.contree.CNetworkSplit
public class CNetworkSplit
Splits in the consensus network Includes several functions to check degrees of compatibility with another split
Field Summary | |
---|---|
double |
direction
|
double |
edgelength
|
java.util.ArrayList<CNetworkEdge> |
edges
|
int |
noOfOccurences
|
java.util.BitSet |
split
|
Constructor Summary | |
---|---|
CNetworkSplit()
Constructs a new split. |
Method Summary | |
---|---|
double |
getSubsetJoins(CNetworkEdge currentEdge,
int noOfTaxa)
Takes an input edge and finds the side of this split it occurs on and then returns the number of taxa on that side of this split. |
boolean |
isCompatible(CNetworkSplit comp,
int noOfTaxa)
Compares an input split to see if it is compatible with this one. |
boolean |
isSubset(CNetworkSplit comp,
boolean zeroSide,
int noOfTaxa)
Compares an input split to see if the argument split is a subset of the specified side of this split? |
boolean |
OnZeroSide(CNetworkSplit comp,
int noOfTaxa)
Compares an input split to see if the input split occurs on the zero side of this split. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.ArrayList<CNetworkEdge> edges
public java.util.BitSet split
public double edgelength
public int noOfOccurences
public double direction
Constructor Detail |
---|
public CNetworkSplit()
Method Detail |
---|
public boolean isCompatible(CNetworkSplit comp, int noOfTaxa)
comp
- The split to compare this one withnoOfTaxa
- The number of taxa as the count function on size of a BitSet is strangepublic boolean OnZeroSide(CNetworkSplit comp, int noOfTaxa)
comp
- The split to try and find in the zero side of this splitnoOfTaxa
- The number of taxa as the count function on size of a BitSet is strangepublic boolean isSubset(CNetworkSplit comp, boolean zeroSide, int noOfTaxa)
comp
- The split we want to find as a subsetzeroSide
- If we want the split on the zeroside of this split then set as true, if on the other side then as false...noOfTaxa
- The number of taxa as the count function on size of a BitSet is strangepublic double getSubsetJoins(CNetworkEdge currentEdge, int noOfTaxa)
currentEdge
- An edge from this node to comparenoOfTaxa
- The number of taxa as the count function on size of a BitSet is strange
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |