Class LabelledResultsVector
Object
org.anchoranalysis.feature.io.results.LabelledResultsVector
public final class LabelledResultsVector extends Object
Like a
ResultsVector but additionally contains labels to describe the calculated results.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description LabelledResultsVector(Optional<MultiName> group, ResultsVector results)Creates with no additional labels other than a group.LabelledResultsVector(RowLabels labels, ResultsVector results)LabelledResultsVector(ResultsVector results)Creates with no additional labels, and no group. -
Method Summary
Modifier and Type Method Description booleanequals(Object o)doubleget(int index)The result of a feature-calculation stored at a particularindex.RowLabelsgetLabels()The labels.ResultsVectorgetResults()The results.inthashCode()intsize()The number of calculations stored in the vector.StringtoString()
-
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
-
-
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
-