Bases: TASSELpy.net.maizegenetics.taxa.distance.TaxaListMatrix.TaxaListMatrix, TASSELpy.net.maizegenetics.util.TableReport.TableReport
Storage for pairwise distance matrices
Methods
absoluteDistance(*args) | Compute absolute distance to second distance matrix |
castTo(pyType) | Casts this object to another java/python type |
clone(*args) | Creates and returns a copy of this object |
equals(*args) | Indicates whether some other object is “equal to” this one |
getArray(size) | Gets an empty wrapped java array that can accept the type of the wrapped |
getClass(*args) | Returns the runtime class of this Object. |
getClonedDistances(*args) | Returns the distances as a 2-dimensional array of doubles. |
getClosestIndex(*args) | Gets the index of the taxon closest to a given taxon |
getColumnCount(*args) | Gets the number of columns |
getColumnName(*args) | Gets a column name |
getDblArray(rows[, cols]) | Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e. |
getDistance(*args) | Returns the distance calculated for two taxa with the indices |
getDistances(*args) | Returns the distances as a 2-dimensional array of doubles (in the actual array used |
getElementCount(*args) | Gets the total number of elements in the dataset |
getRow(*args) | Returns specified row |
getRowCount(*args) | Gets the number of rows |
getSize(*args) | Returns the number of rows and columns that the distance matrix has |
getTableColumnNames(*args) | Gets the names of the columns |
getTableTitle(*args) | Gets the title of the table |
getTaxaList(*args) | Return TaxaList of this matrix |
getTaxon(*args) | Gets a Taxon |
getValueAt(*args) | Returns value at given row and column |
hashCode(*args) | Returns a hash code vlaue for the object |
isSymmetric(*args) | Test whether this matrix is a symmetrix distance matrix |
meanDistance(*args) | Returns the mean pairwise distnace of this matrix |
numberOfTaxa(*args) | Gets the number of taxa |
squaredDistance(*args) | Compute squared distance to second distance matrix |
toDict() | Outputs the table as a dictionary |
toString(*args) | Get string representation of alignment as a string |
whichIdNumber(*args) | Gets the id number of a taxon |
wrap_existing_array(arr_instance) | Wraps a java array of this class’s type |
Constructs DistanceMatrix
Signature: | DistanceMatrix () |
---|---|
Signature: | DistanceMatrix (double[][] distance, TaxaList taxaList) |
Signature: | DistanceMatrix (DistanceMatrix dm) |
Signature: | DistanceMatrix (DistanceMatrix dm, TaxaList subset) |
Parameters: |
|
Compute absolute distance to second distance matrix
Signature: | absoluteDistance (DistanceMatrix mat) |
---|---|
Parameters: | mat (DistanceMatrix) – Second DistanceMatrix |
Returns: | Absolute distance to second distance matrix |
Return type: | double |
Gets the index of the taxon closest to a given taxon
Signature: | getClosestIndex (int fromIndex, int[] exclusion) |
---|---|
Parameters: |
|
Returns: | The index of the member closest to the specified |
Return type: | int |
Gets a column name
Signature: | getColumnName (int col) |
---|---|
Parameters: | col (int) – Index of the column |
Returns: | Name of the column |
Return type: | String |
Returns the distances as a 2-dimensional array of doubles (in the actual array used to store the distances)
Signatures:
final double[][] getDistances()
Returns:
A clone of the array used to store distances
Gets a Taxon
Signature: | getTaxon (int i) |
---|---|
Parameters: | i (int) – The index of the taxon |
Returns: | The taxon at index i |
Return type: | Taxon |
Gets the number of taxa
Signature: | numberOfTaxa () |
---|---|
Returns: | The number of taxa |
Return type: | int |
Compute squared distance to second distance matrix
Signature: | squaredDistance (DistanceMatrix mat, boolean weighted) |
---|---|
Parameters: |
|
Returns: | Squared distance to second distance matrix |
Return type: | double |
Bases: TASSELpy.net.maizegenetics.util.TableReport.TableReport
Methods
castTo(pyType) | Casts this object to another java/python type |
clone(*args) | Creates and returns a copy of this object |
equals(*args) | Indicates whether some other object is “equal to” this one |
getArray(size) | Gets an empty wrapped java array that can accept the type of the wrapped |
getClass(*args) | Returns the runtime class of this Object. |
getClonedDistances(*args) | Returns the distances as a 2-dimensional array of doubles. |
getColumnCount(*args) | Gets the number of columns |
getDblArray(rows[, cols]) | Gets an empty wrapped java array that can accept the type of other wrapped java arrays: i.e. |
getDistance(*args) | Returns the distance calculated for two taxa with the indices |
getElementCount(*args) | Gets the total number of elements in the dataset |
getRow(*args) | Returns specified row |
getRowCount(*args) | Gets the number of rows |
getSize(*args) | Returns the number of rows and columns that the distance matrix has |
getTableColumnNames(*args) | Gets the names of the columns |
getTableTitle(*args) | Gets the title of the table |
getTaxaList(*args) | Return TaxaList of this matrix |
getValueAt(*args) | Returns value at given row and column |
hashCode(*args) | Returns a hash code vlaue for the object |
isSymmetric(*args) | Test whether this matrix is a symmetrix distance matrix |
meanDistance(*args) | Returns the mean pairwise distnace of this matrix |
toDict() | Outputs the table as a dictionary |
toString(*args) | Get string representation of alignment as a string |
wrap_existing_array(arr_instance) | Wraps a java array of this class’s type |
Returns the distances as a 2-dimensional array of doubles. Matrix is cloned first so it can be altered freely
Signature: | getClonedDistances () |
---|---|
Returns: | matrix as 2-d array of doubles |
Return type: | double[][] |
Returns the distance calculated for two taxa with the indices row and col
Signature: | getDistance (int row, int col) |
---|---|
Parameters: |
|
Returns: | Distance for the two taxa at the specified indices |
Return type: | double |
Returns the number of rows and columns that the distance matrix has
Signature: | getSize () |
---|---|
Returns: | Number of rows and columns in the distance matrix |
Return type: | int |
Return TaxaList of this matrix
Signature: | getTaxaList () |
---|---|
Returns: | TaxaList of this matrix |
Return type: | TaxaList |
Test whether this matrix is a symmetrix distance matrix
Signature: | isSymmetric () |
---|---|
Returns: | Whether this matrix is a symmetric distance matrix |
Return type: | boolean |