Class QuantileResult
- java.lang.Object
-
- com.opengamma.strata.math.impl.statistics.descriptive.QuantileResult
-
- All Implemented Interfaces:
Serializable
,org.joda.beans.Bean
,org.joda.beans.ImmutableBean
public final class QuantileResult extends Object implements org.joda.beans.ImmutableBean, Serializable
Object describing the result from aQuantileCalculationMethod
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QuantileResult.Meta
The meta-bean forQuantileResult
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int[]
getIndices()
Gets the indices.double
getValue()
Gets the quantile value.DoubleArray
getWeights()
Gets the weights.int
hashCode()
static QuantileResult.Meta
meta()
The meta-bean forQuantileResult
.QuantileResult.Meta
metaBean()
static QuantileResult
of(double value, int[] indices, DoubleArray weights)
Creates anQuantileResult
from the value, the indices and the weights.String
toString()
-
-
-
Method Detail
-
of
public static QuantileResult of(double value, int[] indices, DoubleArray weights)
Creates anQuantileResult
from the value, the indices and the weights.The amounts must be of the correct type, one pay and one receive. The currencies of the payments must differ.
- Parameters:
value
- the quantile valueindices
- the indices of the samples used in the quantile computationweights
- the weights of the samples used in the quantile computation- Returns:
- the quantile result
-
meta
public static QuantileResult.Meta meta()
The meta-bean forQuantileResult
.- Returns:
- the meta-bean, not null
-
metaBean
public QuantileResult.Meta metaBean()
- Specified by:
metaBean
in interfaceorg.joda.beans.Bean
-
getValue
public double getValue()
Gets the quantile value.- Returns:
- the value of the property
-
getIndices
public int[] getIndices()
Gets the indices.- Returns:
- the value of the property
-
getWeights
public DoubleArray getWeights()
Gets the weights.- Returns:
- the value of the property, not null
-
-