config.PchipInterpolator2D¶
-
class
config.PchipInterpolator2D(coords_data, values_data, pri, sec)¶ 2D interpolation over PPPC4DMID raw data, using the PCHIP method.
Parameters: - coords_data : ndarray, size (M,N)
- values_data : ndarray
- pri : string
Specifies primary annihilation channel. See
get_pppc_spec()for the full list.- sec : {‘elec’, ‘phot’}
Specifies which secondary spectrum to obtain (electrons/positrons or photons).
Notes
PCHIP stands for piecewise cubic hermite interpolating polynomial. This class was built to mimic the Mathematica interpolation of the PPPC4DMID data.
Attributes: - pri : string
Specifies primary annihilation channel. See
get_pppc_spec()for the full list.- sec : {‘elec’, ‘phot’}
Specifies which secondary spectrum to obtain (electrons/positrons or photons).
- get_val : function
Returns the interpolation value at (coord, value) based
Methods
get_val -
__init__(coords_data, values_data, pri, sec)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(coords_data, values_data, pri, sec)Initialize self. get_val(mDM_in_GeV, log10x)
