bayesmithDocumentation0.10.0 source

bayesmith.cumulants.field

Source-derived signatures and contracts. See the reference index for coverage and conventions.

Experimental composition surface. These primitives do not certify evidence, convergence, global density validity or reference-target overlap. Read the experimental guide before use.

Module contract
One field likelihood, whatever coordinates its numerical operators use.

FieldEdgeworth

Defined in bayesmith.cumulants.field, line 39.

FieldEdgeworth(base: dist.Distribution, cumulants: CumulantOperator | None=None, *, order: int=2, validate_args=None)
Manually truncated joint non-Gaussian likelihood for one array event.

``base`` is a real Gaussian NumPyro distribution whose event_shape is the
map/cube shape. ``cumulants`` supplies contractions in those coordinates.
``order=N`` retains Edgeworth weight <= N-2, including cross-products.
This class knows nothing about grids, spectra or how contractions execute.

As with the scalar EdgeworthExpansion, negative corrections yield NaN and
are never clipped or renormalized. This is an approximation, not a globally
certified density. Non-Gaussian simulation/predictive sampling and automatic
order selection are intentionally not supplied. Order 2 samples ``base``.

FieldEdgeworth.support

support(self)

FieldEdgeworth.correction

correction(self, value)
Signed Gaussian multiplier, one per field event.

FieldEdgeworth.log_prob

log_prob(self, value)

FieldEdgeworth.sample

sample(self, key, sample_shape=())
pytree_data_fields = ('base', 'cumulants')
pytree_aux_fields = ('order',)

Type a concept or API name.