Top |
gdouble | nc_window_volume () |
gdouble | nc_window_eval_fourier () |
gdouble | nc_window_deriv_fourier () |
gdouble | nc_window_eval_realspace () |
void | nc_window_free () |
void | nc_window_clear () |
This module comprises the set of functions to compute the window function in both real and Fourier spaces as well as its derivative with respect to the scale $R$ in Fourier space.
In order to study the statistical properties of the density fluctuation field at a certain scale $R$, we use the window function. As an example, to compute the variance of the density contrast at scale $R$, we convolve the window function in the Fourier space with the power spectrum.
Seee also: NcmFftlogTophatwin2 an NcmFftlogGausswin2.
gdouble
nc_window_volume (NcWindow *wf
);
This function returns the volume of the region (with radius 1) defined by the window function.
Top-hat volume: NC_WINDOW_VOLUME_TOPHAT.
Gaussian volume: NC_WINDOW_VOLUME_GAUSSIAN.
gdouble nc_window_eval_fourier (const NcWindow *wf
,const gdouble k
,const gdouble R
);
This function computes the window function in the Fourier space.
gdouble nc_window_deriv_fourier (const NcWindow *wf
,const gdouble k
,const gdouble R
);
This function returns the derivative with respect to R
of the window function
in the Fourier space.
gdouble nc_window_eval_realspace (const NcWindow *wf
,const gdouble r
,const gdouble R
);
This function computes the window function in real space.
void
nc_window_free (NcWindow *wf
);
Atomically decrements the reference count of wf
by one. If the reference count drops to 0,
all memory allocated by wf
is released.