Constructor
NumCosmoMathStatsDist1dSplinenew_from_density
Declaration [src]
NcmStatsDist1dSpline*
ncm_stats_dist1d_spline_new_from_density (
NcmSpline* p
)
Description [src]
Creates a new NcmStatsDist1dSpline with NcmStatsDist1dSpline:density set to p;
ncm_stats_dist1d_prepare() prepares p.
Parameters
p-
Type:
NcmSplineA
NcmSplineof the density $p(x)$.The data is owned by the caller of the function.
Return value
Type: NcmStatsDist1dSpline
A new NcmStatsDist1dSpline.
| The caller of the function takes ownership of the data, and is responsible for freeing it. |