Navigation :
ES
This post-processor computes the expected shortfall of a Double[]
type metric.
import com.activeviam.accelerator.common.postprocessor.impl.ES;
// ...
injectAll(ITailMeasureCalcAware.class, new TailMeasureCalc());
// ...
CopperMeasure pnlVector = Copper.sum("PnLVector");
CopperMeasure nop = ES.measure(pnlVector, 95.0)
.as("ES")
.publish(context);
The post-processor uses one bean :
ITailMeasureCalc
computes the number of PnL that will be part of the metric depending on the double array size.
If the confidence level is not set, the post-processor will use the IESContextVal
to retrieve it.
Here are the parameters of the measure
function:
Parameters |
Type |
Mandatory |
Usage |
underlyingMeasure |
CopperMeasure |
X |
The underlying measure, a double array that contains a PnL. |
confidenceLevel |
Double |
|
An optional confidence level. |