![]() |
![]() |
![]() |
NumCosmo Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
Window Function Abstract ClassWindow Function Abstract Class — Defines the prototype of the NcWindow object. |
struct NcWindow; struct NcWindowClass; gdouble nc_window_deriv_fourier (const NcWindow *wf
,const gdouble k
,const gdouble R
); gdouble nc_window_eval_fourier (const NcWindow *wf
,const gdouble k
,const gdouble R
); gdouble nc_window_eval_realspace (const NcWindow *wf
,const gdouble r
,const gdouble R
); void nc_window_free (NcWindow *wf
); NcWindow * nc_window_new_from_name (gchar *window_name
); gdouble nc_window_volume (NcWindow *wf
);
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. See also Window Function.
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.
Top-hat: equation
Gaussian: equation
|
a NcWindow. |
|
mode. |
|
scale. |
Returns : |
The value of the first derivative of the window function in the Fourier space at scale R . |
gdouble nc_window_eval_fourier (const NcWindow *wf
,const gdouble k
,const gdouble R
);
This function computes the window function in the Fourier space.
Top-hat: equation
Gaussian: equation
|
a NcWindow. |
|
mode. |
|
scale. |
Returns : |
The value of the window function in the Fourier space at scale R . |
gdouble nc_window_eval_realspace (const NcWindow *wf
,const gdouble r
,const gdouble R
);
This function computes the window function in real space.
Top-hat: equation
Gaussian: equation
|
a NcWindow. |
|
distance module to the center point of the filtered region. |
|
scale. |
Returns : |
The value of the window function in the real space at scale R . |
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.
|
a NcWindow. |
NcWindow * nc_window_new_from_name (gchar *window_name
);
This function returns a new NcWindow whose type is defined by window_name
string.
|
"NcWindowTophat" or "NcWindowGaussian". |
Returns : |
A new NcWindow. |
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.
|
a NcWindow. |
Returns : |
The volume (with radius 1) defined by wf . |