Package org.forester.phylogeny.data
Class Confidence
java.lang.Object
org.forester.phylogeny.data.Confidence
- All Implemented Interfaces:
Comparable<Confidence>,PhylogenyData
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfidence(double value, String type) Confidence(double value, String type, double sd) -
Method Summary
Modifier and TypeMethodDescriptionasText()intcompareTo(Confidence confidence) copy()Creates a new PhylogenyData object with identical values as this PhylogenyData.doublegetType()doublegetValue()voidinit()booleanisEqual(PhylogenyData confidence) Compares this PhylogenyData to PhylogenyData data.voidsetStandardDeviation(double sd) voidvoidsetValue(double value) toNHX()voidtoPhyloXML(Writer writer, int level, String indentation) Writes a phyloXML representation of this phylogeny data.toString()
-
Field Details
-
CONFIDENCE_DEFAULT_VALUE
public static final int CONFIDENCE_DEFAULT_VALUE- See Also:
-
FORMATTER
-
-
Constructor Details
-
Confidence
public Confidence() -
Confidence
-
Confidence
-
-
Method Details
-
asSimpleText
- Specified by:
asSimpleTextin interfacePhylogenyData
-
asText
- Specified by:
asTextin interfacePhylogenyData
-
compareTo
- Specified by:
compareToin interfaceComparable<Confidence>
-
copy
Description copied from interface:PhylogenyDataCreates a new PhylogenyData object with identical values as this PhylogenyData. This ~should~ return a deep copy, but not there yet.- Specified by:
copyin interfacePhylogenyData- Returns:
- a ~deep~ copy of this PhylogenyData
-
getType
-
getValue
public double getValue() -
getStandardDeviation
public double getStandardDeviation() -
init
public void init() -
isEqual
Description copied from interface:PhylogenyDataCompares this PhylogenyData to PhylogenyData data. In general, this should return true if and only if all fiels are exactly identical.- Specified by:
isEqualin interfacePhylogenyData- Returns:
- in general, true if and only if all fiels are exactly identical, false otherwise
-
setType
-
setValue
public void setValue(double value) -
setStandardDeviation
public void setStandardDeviation(double sd) -
toNHX
- Specified by:
toNHXin interfacePhylogenyData
-
toPhyloXML
Description copied from interface:PhylogenyDataWrites a phyloXML representation of this phylogeny data.- Specified by:
toPhyloXMLin interfacePhylogenyData- Throws:
IOException
-
toString
-