kernel#
jeanspy.model_jax.BaesAnisotropyModel.kernel
Class and construction: BaesAnisotropyModel.
- BaesAnisotropyModel.kernel(u, R_pc, *, params, n_kernel=32)[source]#
LOSVD kernel K(u) for general BAES anisotropy via numerical integration.
Implements the note definition
- K(u_s) = f(Ru_s)/u_s * int_1^{u_s} du
[u/sqrt(u^2-1)] * (1-beta(Ru)/u^2) / f(Ru).
A fixed-grid JAX-friendly quadrature is used. The change of variables
u=cosh(s), s=arccosh(u)
removes the endpoint singularity at u=1 and keeps the integration interval length O(log u), improving accuracy for very large u with fixed n_kernel. Internally, f-ratios are computed via log-differences for numerical stability in extreme beta regimes.