NcPowspecMLFixSpline

NcPowspecMLFixSpline — Class for linear matter power spectrum from a fixed spline.

Stability Level

Stable, unless otherwise indicated

Functions

Properties

char * filename Read / Write / Construct

Object Hierarchy

    GObject
    ╰── NcmPowspec
        ╰── NcPowspecML
            ╰── NcPowspecMLFixSpline

Includes

#include <numcosmo/nc_powspec_ml_fix_spline.h>

Description

Provides a linear matter power spectrum as a function of mode $k$ at a redshift $z_0$ computing a spline, whose knots and the respective $P(k, z = z_0)$ values are provided in a file.

Functions

nc_powspec_ml_fix_spline_new ()

NcPowspecMLFixSpline *
nc_powspec_ml_fix_spline_new (const gchar *filename);

Creates a new NcPowspecMLFixSpline from a spline of the power spectrum, $P(k, z=z_0)$ at a given redshift $z_0$, which is present in the serialized object filename .

Parameters

filename

a file containing a serialized NcmSpline

 

Returns

the newly created NcPowspecMLFixSpline.

[transfer full]


nc_powspec_ml_fix_spline_set_file ()

void
nc_powspec_ml_fix_spline_set_file (NcPowspecMLFixSpline *ps_fs,
                                   const gchar *filename);

Attributes a spline of the power spectrum at a redshift $z_0$, P(k, z_0), from filename .

Parameters

ps_fs

a NcPowspecMLFixSpline

 

filename

a file containing a serialized NcmSpline

 

Property Details

The “filename” property

  “filename”                 char *

The file name containing $P(k, z=z_0)$ in a serialized NcmSpline format.

Owner: NcPowspecMLFixSpline

Flags: Read / Write / Construct

Default value: NULL