gwinferno.preprocess.priors.chi_effective_prior_from_aligned_spins#
- chi_effective_prior_from_aligned_spins(chi_eff, q, a_max=1.0)[source]#
Calculate the conditional prior density for effective spin \(p(\chi_\mathrm{eff}\mid q)\) corresponding to uniform and aligned component spin priors.
- Parameters:
- chi_efffloat, array-like
Effective spin value(s) at which to compute the prior density.
- qfloat, array-like
Mass ratio value(s) to condition on. Expected convention \(q<1\).
- a_maxfloat, default=1.0
Maximum allowed dimensionless component spin magnitude.
- Returns:
- array-like
Prior density at given \(\chi_\mathrm{eff}\) value(s).
Notes
This was modified from the original version to handle higher-dimensional arrays gracefully.