18#ifndef MS_TREECLUSTER_HPP
19#define MS_TREECLUSTER_HPP
26namespace matrix_science {
91 bool setRow(
int row, std::vector< double > datarow, std::vector< int > maskrow);
94 bool cluster(TREE_CLUSTER_DISTANCE tcd,
96 const std::vector< double > & weight,
97 std::vector< int > &left,
98 std::vector< int > &right,
99 std::vector< double > &distance,
100 bool transpose =
false );
This class is used as a base class for several Mascot Parser classes.
Definition: ms_errors.hpp:696
TREE_CLUSTER_METHOD
Flags for getTreeClusterNodes().
Definition: ms_mascotresults.hpp:128
This class is an interface to the cluster algorithm described at http://bonsai.hgc....
Definition: ms_treecluster.hpp:49
TREE_CLUSTER_DISTANCE
Flags for cluster().
Definition: ms_treecluster.hpp:60
@ TCD_EUCLIDEAN
'e': Euclidean distance
Definition: ms_treecluster.hpp:67
@ TCD_KENDALLS_TAU_CORRELATION
'k': Kendall tau rank correlation coefficient
Definition: ms_treecluster.hpp:66
@ TCD_ABS_UNCENTERED_CORRELATION
'x': Absolute uncentered Pearson correlation
Definition: ms_treecluster.hpp:64
@ TCD_UNCENTERED_CORRELATION
'u': Uncentered Pearson correlation (equivalent to the cosine of the angle between two data vectors)
Definition: ms_treecluster.hpp:63
@ TCD_SPEARMANS_RANK_CORRELATION
's': Spearman�s rank correlation;
Definition: ms_treecluster.hpp:65
@ TCD_CORRELATION
'c': Pearson correlation coefficient
Definition: ms_treecluster.hpp:61
@ TCD_ABS_CORRELATION
'a': Absolute value of the Pearson correlation coefficient
Definition: ms_treecluster.hpp:62