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 classQuantileResult.MetaThe meta-bean forQuantileResult.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)int[]getIndices()Gets the indices.doublegetValue()Gets the quantile value.DoubleArraygetWeights()Gets the weights.inthashCode()static QuantileResult.Metameta()The meta-bean forQuantileResult.QuantileResult.MetametaBean()static QuantileResultof(double value, int[] indices, DoubleArray weights)Creates anQuantileResultfrom the value, the indices and the weights.StringtoString()
-
-
-
Method Detail
-
of
public static QuantileResult of(double value, int[] indices, DoubleArray weights)
Creates anQuantileResultfrom 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:
metaBeanin 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
-
-