Class LabelledResultsVector
Object
LabelledResultsVector
Like a
ResultsVector but additionally contains labels to describe the calculated results.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionLabelledResultsVector(Optional<MultiName> group, ResultsVector results) Creates with no additional labels other than a group.LabelledResultsVector(RowLabels labels, ResultsVector results) Creates a newLabelledResultsVectorinstance.LabelledResultsVector(ResultsVector results) Creates with no additional labels, and no group. -
Method Summary
-
Constructor Details
-
LabelledResultsVector
Creates with no additional labels, and no group.- Parameters:
results- the results.
-
LabelledResultsVector
Creates with no additional labels other than a group.- Parameters:
group- the associated group.results- the results.
-
LabelledResultsVector
Creates a newLabelledResultsVectorinstance.- Parameters:
labels- The labels.results- The results.
-
-
Method Details
-
get
public double get(int index) The result of a feature-calculation stored at a particularindex.- Parameters:
index- the index (zero-indexed). It should be>= 0and< size().- Returns:
- the value corresponding to the feature-calculation or
Double.NaNif an exception occurred during calculation.
-
size
public int size()The number of calculations stored in the vector.- Returns:
- the total number of calculations in the vector.
-
getLabels
The labels. -
getResults
The results. -
equals
-
hashCode
public int hashCode() -
toString
-