ConstantAnisotropyModel#
jeanspy.model.ConstantAnisotropyModel
See methods and properties for individual lookup pages, or the alphabetical API dictionary to search all classes. The full class contract and existing member anchors are retained below.
- class jeanspy.model.ConstantAnisotropyModel(show_init=False, submodels=None, **params)#
Bases:
jeanspy.model.AnisotropyModelConstant spherical anisotropy beta(r)=beta_ani.
beta_aniis dimensionless and must be <1 for positive tangential dispersion.betareturns a scalar;f(r)is r**(2*beta_ani). Radii are in pc; f is an arbitrarily normalized Jeans integrating factor satisfying d ln(f)/d ln(r)=2*beta. The kernel is dimensionless and uses u=r/R >= 1 with positive R.kernel(u,R,**kwargs)uses an analytic hypergeometric expression, is independent of R and returns the u shape. Extra keywords are ignored. Elementary formulas do not uniformly validate physical domains; invalid inputs can produce nonfinite results. An anisotropy below 1 does not alone establish a positive phase-space distribution function. This stateful NumPy/SciPy API does not support JAX differentiation. Seeexamples/docs_profiles.py.- beta(r)[source]#
Evaluate spherical velocity anisotropy.
Notes
Inputs and units. r is a radius or NumPy radius array in pc.
Returns and shape. Dimensionless beta; constant models may return a scalar.
- f(r)[source]#
Evaluate the radial Jeans integrating factor.
Notes
Inputs and units. r is a radius or NumPy radius array in pc.
Returns and shape. An arbitrarily normalized integrating factor with radius shape.
- is_required_param_names(param_names_candidates)#
Test a sequence of names against this component’s required parameters.
Returns a list of bool with the same length and order as
param_names_candidates. Submodel requirements are not included.
- kernel(u, R, **kwargs)[source]#
Evaluate the spherical LOS projection kernel.
Notes
Inputs and units. u=r/R>=1 is dimensionless; R is projected radius in pc; broadcastable arrays. Extra kwargs are ignored by this analytic kernel.
Returns and shape. Dimensionless projection kernel with the u shape; R is ignored.
- name = 'ConstantAnisotropyModel'#
- property params_all#
Return a flattened Parameters copy of this model and its submodels.
Values retain their physical units. Later submodels overwrite duplicate names; use
params_all_with_model_nameto retain role-qualified names.
- property params_all_with_model_name#
Return a new Parameters mapping with submodel-role prefixes.
Nested names use
role:parameternotation. Values retain their physical units; this operation copies the mapping, not nested mutable values.
- required_models = {}#
- required_param_names = ['beta_ani']#
- property required_param_names_combined#
Return this model’s and all nested submodels’ required parameter names.
The result is a list in traversal order; duplicate names are retained.
- sampling_identity(sampled_names=())#
Configuration and fixed parameters, excluding changing MCMC coordinates.
- update(new_params=None, **kwargs)#
Replace named parameters in the owning components.
Notes
Inputs and units.
new_paramsis an optional mapping/Parameters/Series; keyword values are additional replacements. Names are physical names declared by this model and its components. Unknown names raise ValueError before any parameters are changed.Returns and shape. None; mutates component parameters.
params_allreturns the resulting flattened copy.