improver.expected_value module
Calculation of expected value from a probability distribution.
-
class ExpectedValue[source]
Bases: PostProcessingPlugin
Calculation of expected value from a probability distribution
-
_abc_impl = <_abc._abc_data object>
-
static integrate_over_thresholds(cube)[source]
Calculation of expected value for threshold data by converting from
cumulative distribution (CDF) to probability density (PDF), then
integrating over the threshold dimension.
- Parameters:
cube (Cube) – Probabilistic data with a threshold coordinate.
- Return type:
Cube
- Returns:
Expected value of probability distribution. Same shape as input cube
but with threshold coordinate removed.
-
process(cube)[source]
Expected value calculation and metadata updates.
- Parameters:
cube (Cube) – Probabilistic data with a realization, threshold or percentile
representation.
- Return type:
Cube
- Returns:
Expected value of probability distribution. Same shape as input cube
but with realization/threshold/percentile coordinate removed.