10 return o <<
"ClusterAlgoResult { " <<
"name: " << c.
name_ <<
" }";
12 for (
int i = 0; i < c.variables_.GetSize(); ++i) {
13 o <<
"Element " << i <<
" : " << c.variables_[i];
20 for (
int i = 0; i < variables_.GetSize(); ++i) {
28 if (nvar > variables_.GetSize()) {
36 if (nvar > variables_.GetSize()) {
40 if (nweights > weights_.GetSize()) {
41 weights_.Set(nweights);
46 if (element >= 0 && element < variables_.GetSize()) {
47 variables_[element] = value;
52 if (nCluster >= 0 && nCluster < weights_.GetSize()) {
53 weights_[nCluster] = weight;
Class that holds details about the clustering algorithm as a whole.
Contains details about the clustering algorithm.
TString name_
Name of the clustering algorithm.
virtual ~ClusterAlgoResult()
Class destructor.
void setAlgoVar(int element, double value)
Set an algorithm variable.
void clear()
Reset the ClusterAlgoResult object.
void set(const TString &name, int nvar)
Set name and number of variables of cluster algo.
void setWeight(int nClusters, double weight)
Set a weight when number of clusters reached.