MonteCarloResult

petrophys.evaluation.uncertainty.MonteCarloResult

Also available as petrophys.evaluation.MonteCarloResult

class MonteCarloResult(
samples,
percentiles,
mean,
std,
sensitivity=<factory>,
inputs=<factory>,
n=0,
seed=None,
)[source]

Outcome of monte_carlo().

Attributes

n

seed

samples

Every realisation of the output, shape (n, ...) .

percentiles

mean

std

sensitivity

Spearman rank correlation of each input in inputs with a scalar output: which inputs drive the spread (empty for array outputs).

inputs

the value of each uncertain scalar input, and for each curve input in correlated_depths its one standard draw (the z of a normal, the factor of a lognormal, the fraction 0-1 across a uniform range), which ranks the realisations as the shift does.

Parameters:
samples: ndarray

Every realisation of the output, shape (n, …) .

percentiles: Dict[str, ndarray]
mean: ndarray
std: ndarray
sensitivity: Dict[str, float]

Spearman rank correlation of each input in inputs with a scalar output: which inputs drive the spread (empty for array outputs).

inputs: Dict[str, ndarray]

the value of each uncertain scalar input, and for each curve input in correlated_depths its one standard draw (the z of a normal, the factor of a lognormal, the fraction 0-1 across a uniform range), which ranks the realisations as the shift does. Curve inputs drawn independently at each depth are left out.

Type:

Per-realisation draws, shape (n,)

n: int = 0
seed: int | None = None