Class RiskMetricRegistry
java.lang.Object
com.quantfinlib.risk.RiskMetricRegistry
Custom Risk Metrics Framework: registry of built-in and user-defined risk
metrics, evaluated together over a return series.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance; the explicit form of the default constructor. -
Method Summary
Modifier and TypeMethodDescriptioncalculateAll(double[] returns) Evaluates every registered metric against the given returns.booleanregister(String name, RiskMetric metric) static RiskMetricRegistryCreates a registry pre-populated with the built-in metric set.
-
Constructor Details
-
RiskMetricRegistry
public RiskMetricRegistry()Creates an instance; the explicit form of the default constructor.
-
-
Method Details
-
withDefaults
Creates a registry pre-populated with the built-in metric set. -
register
-
get
-
contains
-
calculateAll
-