Class BasicSymmetricalDistanceMatrix
java.lang.Object
org.forester.evoinference.matrix.distance.BasicSymmetricalDistanceMatrix
- All Implemented Interfaces:
DistanceMatrix
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.forester.evoinference.matrix.distance.DistanceMatrix
DistanceMatrix.Format
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
getIdentifier
(int i) final int
final int
getSize()
final double
getValue
(int col, int row) final double[][]
final void
randomize
(long seed) final void
setIdentifier
(int i, String identifier) final void
final void
setValue
(int col, int row, double d) final String
toString()
final StringBuffer
toStringBuffer
(DistanceMatrix.Format format) final void
-
Constructor Details
-
BasicSymmetricalDistanceMatrix
public BasicSymmetricalDistanceMatrix(int size)
-
-
Method Details
-
getIdentifier
- Specified by:
getIdentifier
in interfaceDistanceMatrix
-
getIndex
- Specified by:
getIndex
in interfaceDistanceMatrix
-
getSize
public final int getSize()- Specified by:
getSize
in interfaceDistanceMatrix
-
getValue
public final double getValue(int col, int row) - Specified by:
getValue
in interfaceDistanceMatrix
-
getValues
public final double[][] getValues() -
randomize
public final void randomize(long seed) -
setIdentifier
- Specified by:
setIdentifier
in interfaceDistanceMatrix
-
setRow
-
setValue
public final void setValue(int col, int row, double d) - Specified by:
setValue
in interfaceDistanceMatrix
-
toString
-
toStringBuffer
- Specified by:
toStringBuffer
in interfaceDistanceMatrix
-
write
- Throws:
IOException
-