heatmap-cluster
Version:
The Unipept visualisation library
13 lines (11 loc) • 450 B
text/typescript
import ClusterElement from "../cluster/ClusterElement";
export default interface Metric {
/**
* Returns a correlation or distance matrix based upon this metric. Note that the returned matrix is lower
* triangular.
*
* @param matrix The input matrix for which some correlation of distance matrix should be calculated.
* @return The distance between both values.
*/
getDistance(matrix: number[][]): number[][];
}