11 std::cout <<
"ClusterAlgoResult { "
12 <<
"name: " <<
name_ <<
" }" << std::endl;
14 for (
int i = 0; i < variables_.GetSize(); ++i) {
15 std::cout <<
"Element " << i <<
" : " << variables_[i] << std::endl;
22 for (
int i = 0; i < variables_.GetSize(); ++i) {
30 if (nvar > variables_.GetSize()) {
38 if (nvar > variables_.GetSize()) {
42 if (nweights > weights_.GetSize()) {
43 weights_.Set(nweights);
48 if (element >= 0 && element < variables_.GetSize()) {
49 variables_[element] = value;
54 if (nCluster >= 0 && nCluster < weights_.GetSize()) {
55 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.
void setAlgoVar(int element, double value)
Set an algorithm variable.
virtual ~ClusterAlgoResult()
Class destructor.
ClusterAlgoResult()
Class constructor.
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.
void Clear()
Reset the ClusterAlgoResult object.
void Print() const
Print a description of this object.