Class

NumCosmoXcorKernelTable

Description [src]

final class NumCosmo.XcorKernelTable : NumCosmo.XcorKernelRadial
{
  /* No available fields */
}

Radial window supplied as a table of $(\chi, W)$ samples, or as a list of such tables.

Every other NcXcorKernelRadial is a formula. This one is the case a survey pipeline actually hands you: the window already evaluated on a grid, with no closed form behind it. Each table is one NcXcorComponentTable, which reconstructs its samples with a NcmSplineBSpline and declares what the window is a window of; this kernel integrates every component over its own support and sums them, and is otherwise an ordinary radial kernel, so NcXcor and NcXcorSolver drive it exactly as they drive the analytic ones.

A tracer with several terms — density plus redshift-space distortions plus magnification for galaxy counts, shear plus intrinsic alignments for lensing — is one kernel with one component per term, each carrying its own Bessel weight and $\ell$ prefactor through its NcXcorComponentTable:kind.

The single-table properties NcXcorKernelTable:chi, NcXcorKernelTable:W, NcXcorKernelTable:kind, NcXcorKernelTable:order and NcXcorKernelTable:normalize build one component at construction; they are the convenience for the one-term case and are consumed by it, so a kernel always serializes through NcXcorKernelTable:components.

The convention is NcXcorKernelRadial‘s: $\chi$ in Mpc, $P(k)$ at $z=0$, and all redshift dependence — growth included — carried by $W$. A table exported from CCL’s tracer kernels or from the N5K challenge already satisfies it.

Constructors

nc_xcor_kernel_table_new

Creates a one-component density kernel of default order, normalized to unit integral, with no integrator set.

nc_xcor_kernel_table_new_from_components

Creates a kernel from a list of tabulated components, one per term of the tracer.

nc_xcor_kernel_table_new_full

Creates a one-component kernel with every option set.

Instance methods

nc_xcor_kernel_table_get_kind
No description available.

nc_xcor_kernel_table_get_n_components
No description available.

nc_xcor_kernel_table_get_norm
No description available.

nc_xcor_kernel_table_get_normalize
No description available.

nc_xcor_kernel_table_get_order
No description available.

nc_xcor_kernel_table_peek_component
No description available.

nc_xcor_kernel_table_peek_knots
No description available.

nc_xcor_kernel_table_peek_spline
No description available.

nc_xcor_kernel_table_replace_samples

Replaces the samples of the i-th component in place (see nc_xcor_component_table_set_samples()) and marks the kernel outdated, so its next nc_xcor_kernel_prepare_if_needed() prepares again. The kernel object, and with it its registration in a NcXcorSolver and the solver’s per-block integrators, is unchanged: this is the per-step update of a sampler whose windows come from a tabulating code.

Methods inherited from NcXcorKernelRadial (9)
nc_xcor_kernel_radial_eval_W

Evaluates the whole radial window, the sum of its components, normalized to unit integral over its support and zero outside it.

nc_xcor_kernel_radial_eval_W_comp

Evaluates component comp of the radial window at chi, zero outside the interval that nc_xcor_kernel_radial_get_comp_support() reports for it. The components sum to a window of unit integral.

nc_xcor_kernel_radial_eval_kernel_factor

Evaluates a multiplicative factor of $(\chi, k)$ applied to component comp on top of $W(\chi)\sqrt{P(k,0)}$. It must not depend on $\ell$: one closure serves a whole block of multipoles, so anything $\ell$-dependent belongs in nc_xcor_kernel_radial_eval_prefactor() instead.

nc_xcor_kernel_radial_eval_prefactor

Evaluates a multiplicative factor that depends only on $\ell$, applied to component comp. Shear contributes $\sqrt{(\ell+2)(\ell+1)\ell(\ell-1)}$ here.

nc_xcor_kernel_radial_get_comp_bessel_deriv

Gets the derivative order of the spherical Bessel weight of component comp: 0 for $j_\ell$, 2 for the $j_\ell”$ of a redshift-space distortion term. It is set on the NcXcorKernelComponent at construction.

nc_xcor_kernel_radial_get_comp_support

Gets the interval outside which component comp vanishes. It is exactly the interval that component is integrated over, so the boundary is exact by construction rather than something the quadrature has to locate.

nc_xcor_kernel_radial_get_n_comps

Gets the number of components the window is split into: its maximal intervals of support. Each is integrated separately over exactly its own interval, so that a boundary is never interior to an integration domain.

nc_xcor_kernel_radial_get_support

Gets the hull of the components’ intervals, outside which the whole window vanishes. Components may be disjoint, so the hull can contain gaps where the window is zero; it is what fixes the kernel’s redshift range, not what anything is integrated over.

nc_xcor_kernel_radial_peek_kdep

Gets the scale-dependent factor the kernel carries, if any.

Methods inherited from NcXcorKernel (42)

Please see NcXcorKernel for a full list of methods.

Methods inherited from NcmModel (91)

Please see NcmModel for a full list of methods.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

NumCosmo.XcorKernelTable:W

Window samples $W(\chi)$, one per entry of NcXcorKernelTable:chi. See NcXcorKernelTable:chi.

NumCosmo.XcorKernelTable:chi

Comoving distances of the samples, in Mpc, strictly increasing. Builds a single component with NcXcorKernelTable:W at construction; NULL once the kernel exists.

NumCosmo.XcorKernelTable:components

The tabulated components, a NcmObjArray of NcXcorComponentTable, one per term of the tracer. Either this or the pair NcXcorKernelTable:chi and NcXcorKernelTable:W is given at construction, not both.

NumCosmo.XcorKernelTable:kind

Kind of the single component built from NcXcorKernelTable:chi and NcXcorKernelTable:W. Reads back the first component’s kind.

NumCosmo.XcorKernelTable:normalize

Whether the single component built from NcXcorKernelTable:chi and NcXcorKernelTable:W is rescaled to unit integral; see NcXcorComponentTable:normalize. Reads back the first component’s flag.

NumCosmo.XcorKernelTable:order

B-spline order of the single component built from NcXcorKernelTable:chi and NcXcorKernelTable:W; see NcXcorComponentTable:order. Reads back the first component’s order.

Properties inherited from NcXcorKernelRadial (2)
NumCosmo.XcorKernelRadial:bessel-deriv

Derivative order of the spherical Bessel weight every component of this kernel carries: 0 for $j_\ell$, 1 for $j_\ell’$, 2 for the $j_\ell”$ of a redshift-space distortion term. The derivative is with respect to the argument $x = k\chi$.

NumCosmo.XcorKernelRadial:scale-dependence

Optional NcXcorKernelRadialKDep multiplying the radial integrand, or NULL for none. Any shape may carry any scale dependence, so the two are varied independently rather than baked into separate kernel classes.

Properties inherited from NcXcorKernel (14)
NumCosmo.XcorKernel:adaptive-boundary-tries
No description available.

NumCosmo.XcorKernel:adaptive-epsilon

Convergence threshold for the adaptive $k$-range determination: sampling stops extending outwards once $\Vert W\Vert$ falls below this fraction of its running maximum, for NcXcorKernel:adaptive-boundary-tries consecutive steps.

NumCosmo.XcorKernel:dist
No description available.

NumCosmo.XcorKernel:expansion-factor
No description available.

NumCosmo.XcorKernel:integrator
No description available.

NumCosmo.XcorKernel:l-limber
No description available.

NumCosmo.XcorKernel:lmax
No description available.

NumCosmo.XcorKernel:max-border-expansions
No description available.

NumCosmo.XcorKernel:max-iter
No description available.

NumCosmo.XcorKernel:panel-order-cap

Highest Chebyshev order tried on one panel before it is bisected, as $N = 2^\mathrm{cap} + 1$ coefficients.

NumCosmo.XcorKernel:peak-epsilon

Peak-relative floor of the adaptive refinement of the $W_i(k)$ closure. An interval is accepted once its estimated interpolation error falls below peak-epsilon $\times \max\vert F\vert$, the maximum taken over the smallest of the block’s peaks so that a sub-dominant multipole is not held to a tolerance relative to its neighbours.

NumCosmo.XcorKernel:powspec
No description available.

NumCosmo.XcorKernel:reltol

Relative tolerance for the adaptive refinement of the $W_i(k)$ spline.

NumCosmo.XcorKernel:track-fit-residual

Whether the closure records the residual its fit achieved on each interval it is a single polynomial on — a knot interval of a spline closure, a panel of a Chebyshev one. That record is what nc_xcor_compute_full() turns into an error estimate. On by default: without it the estimate has only NcXcorKernel:reltol and NcXcorKernel:peak-epsilon to work from — the tolerances the fit was asked for, which it beats by 12 to 3100 times depending on the kernel, so the resulting bound tracks the pair’s cancellation rather than its accuracy.

Properties inherited from NcmModel (9)
NumCosmoMath.Model:implementation

The implementation flags of the model class, see ncm_model_check_impl_flag().

NumCosmoMath.Model:name

The name of the model class.

NumCosmoMath.Model:nick

The nickname of the model class.

NumCosmoMath.Model:params-types

The NcmParamType of each parameter.

NumCosmoMath.Model:reparam

The reparametrization, see ncm_model_set_reparam().

NumCosmoMath.Model:scalar-params-len

The number of scalar parameters.

NumCosmoMath.Model:sparam-array

The parameter descriptions that differ from the class ones, NcmSParam keyed by parameter index. Each one is placed by its parameter name: a description of a parameter declared with ncm_model_class_add_removed_param() is skipped, and one of any other unknown parameter aborts.

NumCosmoMath.Model:submodel-array

The submodels, attached at construction.

NumCosmoMath.Model:vector-params-len

The number of vector parameters (not their lengths).

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct NumCosmoXcorKernelTableClass {
  NcXcorKernelRadialClass parent_class;
  
}

No description available.

Class members
parent_class: NcXcorKernelRadialClass

No description available.