public final class LabelledResultsVector extends Object
ResultsVector
but additionally contains labels to describe the calculated results.Constructor and Description |
---|
LabelledResultsVector(Optional<MultiName> group,
ResultsVector results)
Creates with no additional labels other than a group.
|
LabelledResultsVector(ResultsVector results)
Creates with no additional labels, and no group.
|
LabelledResultsVector(RowLabels labels,
ResultsVector results) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
double |
get(int index)
The result of a feature-calculation stored at a particular
index . |
RowLabels |
getLabels()
The labels.
|
ResultsVector |
getResults()
The results.
|
int |
hashCode() |
int |
size()
The number of calculations stored in the vector.
|
String |
toString() |
public LabelledResultsVector(ResultsVector results)
results
- the results.public LabelledResultsVector(Optional<MultiName> group, ResultsVector results)
group
- the associated group.results
- the results.public LabelledResultsVector(RowLabels labels, ResultsVector results)
public double get(int index)
index
.index
- the index (zero-indexed). It should be >= 0
and < size()
.Double.NaN
if an
exception occurred during calculation.public int size()
public RowLabels getLabels()
public ResultsVector getResults()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.