public final class SamplePlusOneNearestIndexQuantileMethod extends DiscreteQuantileMethod
The estimation is one of the sorted sample data. Its index is given by the nearest (Math.round) integer to the quantile multiplied by the size of the sample plus one. The Java index is the above index minus 1 (array index start at 0 and not 1).
Reference: Value-At-Risk, OpenGamma Documentation 31, Version 0.1, April 2015.
| Modifier and Type | Field and Description |
|---|---|
static SamplePlusOneNearestIndexQuantileMethod |
DEFAULT
Default implementation.
|
| Constructor and Description |
|---|
SamplePlusOneNearestIndexQuantileMethod() |
| Modifier and Type | Method and Description |
|---|---|
protected double |
indexShift()
Shift added to/subtracted from index during intermediate steps in the expected shortfall computation.
|
expectedShortfall, quantilecheckIndex, expectedShortfallFromSorted, expectedShortfallFromUnsorted, expectedShortfallResultFromUnsorted, quantileFromSorted, quantileFromUnsorted, quantileResultFromUnsorted, quantileResultWithExtrapolationFromUnsorted, quantileWithExtrapolationFromSorted, quantileWithExtrapolationFromUnsortedpublic static final SamplePlusOneNearestIndexQuantileMethod DEFAULT
public SamplePlusOneNearestIndexQuantileMethod()
protected double indexShift()
DiscreteQuantileMethodCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.