sample_R#
jeanspy.model_jax.PlummerModel.sample_R
Class and construction: PlummerModel.
- PlummerModel.sample_R(key, n, *, re_pc)[source]#
Sample projected radii using the analytic inverse CDF.
CDF(R) = R^2 / (R^2 + re^2) -> R = re * sqrt(u/(1-u)).
Notes
Inputs and units. key is a JAX random key; n is a static nonnegative count;
re_pcis positive scale in pc.Returns and shape. Array (n,) of radii in pc. Split keys explicitly before repeated independent draws.