public final class QuantileResult extends Object implements org.joda.beans.ImmutableBean, Serializable
QuantileCalculationMethod.| Modifier and Type | Class and Description |
|---|---|
static class |
QuantileResult.Meta
The meta-bean for
QuantileResult. |
| Modifier and Type | Method and 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 for
QuantileResult. |
QuantileResult.Meta |
metaBean() |
static QuantileResult |
of(double value,
int[] indices,
DoubleArray weights)
Creates an
QuantileResult from the value, the indices and the weights. |
String |
toString() |
public static QuantileResult of(double value, int[] indices, DoubleArray weights)
QuantileResult 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.
value - the quantile valueindices - the indices of the samples used in the quantile computationweights - the weights of the samples used in the quantile computationpublic static QuantileResult.Meta meta()
QuantileResult.public QuantileResult.Meta metaBean()
metaBean in interface org.joda.beans.Beanpublic double getValue()
public int[] getIndices()
public DoubleArray getWeights()
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.