gwkokab.analysis.core.synthetic_events¶
Classes¶
Mixin class that provides a random number generator key and seed management for |
Functions¶
|
Module Contents¶
- class gwkokab.analysis.core.synthetic_events.SyntheticEventsBase(filename: str, model_fn: collections.abc.Callable[Ellipsis, gwkokab.models.utils.ScaledMixture], model_params_filename: str, poisson_mean_filename: str, n_buffer_events: int, derive_parameters: bool = False)¶
Bases:
gwkokab.analysis.core.utils.PRNGKeyMixin,abc.ABCMixin class that provides a random number generator key and seed management for classes that require random number generation.
This mixin allows classes to initialize a random key based on a seed and provides a property to access the current random key, which is automatically split to ensure independent random streams across different parts of the code.
- modify_model_params(params: dict) dict¶
Hook for subclasses to modify parameters before model instantiation.
- save_population(population: numpy.ndarray, indices: numpy.ndarray, buffer_population: numpy.ndarray, buffer_indices: numpy.ndarray, resample_idx: numpy.ndarray, resample_prob: numpy.ndarray) None¶
- derive_parameters = False¶
- filename¶
- model_fn¶
- model_params¶
- n_buffer_events¶
- property parameters: tuple[str, Ellipsis]¶
- Abstractmethod:
Returns the parameters (intrinsic + extrinsic).
- poisson_mean_filename¶
- gwkokab.analysis.core.synthetic_events.injection_generator_parser() argparse.ArgumentParser¶