public abstract class DiscreteQuantileMethod extends QuantileCalculationMethod
The estimation is one of the sorted sample data.
Reference: Value-At-Risk, OpenGamma Documentation 31, Version 0.1, April 2015.
| Constructor and Description |
|---|
DiscreteQuantileMethod() |
| Modifier and Type | Method and Description |
|---|---|
protected QuantileResult |
expectedShortfall(double level,
DoubleArray sample)
Computed the expected shortfall.
|
protected QuantileResult |
quantile(double level,
DoubleArray sample,
boolean isExtrapolated)
Computed the quantile.
|
checkIndex, expectedShortfallFromSorted, expectedShortfallFromUnsorted, expectedShortfallResultFromUnsorted, quantileFromSorted, quantileFromUnsorted, quantileResultFromUnsorted, quantileResultWithExtrapolationFromUnsorted, quantileWithExtrapolationFromSorted, quantileWithExtrapolationFromUnsortedprotected QuantileResult quantile(double level, DoubleArray sample, boolean isExtrapolated)
QuantileCalculationMethodThis protected method should be implemented in subclasses.
quantile in class QuantileCalculationMethodlevel - the quantile levelsample - the sample observationsisExtrapolated - extrapolated if true, not extrapolated otherwise.protected QuantileResult expectedShortfall(double level, DoubleArray sample)
QuantileCalculationMethod
This protected method should be implemented in subclasses
and coherent to QuantileCalculationMethod.quantile(double, DoubleArray, boolean).
expectedShortfall in class QuantileCalculationMethodlevel - the quantile levelsample - the sample observationsCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.