curepy.container.ancillary_parameter module#
Container for ancillary parameter information
- class curepy.container.ancillary_parameter.AncillaryParameter(b: list | None = None, u_b: list | None = None, corr_b: list | None = None, corr_between_b: ndarray | None = None, b_samples: ndarray | None = None, b_MC_steps: int | None = None)[source]#
Bases:
object- calculate_b_cov() ndarray | None[source]#
Calculate the full covariance matrix for all ancillary parameters.
Constructs per-parameter correlation matrices, flattens and combines them with
corr_between_b(if set) usingcomet_maths.calculate_flattened_corr. ReturnsNoneif insufficient data is available and emits a warning.- Returns:
Combined covariance matrix for all ancillary parameters, or
Noneif it cannot be computed.
- generate_b_samples()[source]#
Generate Monte Carlo samples for the ancillary parameters.
Uses
punpy.MCPropagationto draw samples from the joint distribution defined byb,u_b,corr_b, andcorr_between_b. IfbisNonethe resultingb_samplesattribute is set toNone. Ifb_sampleshas already been provided it is left unchanged.