Method

NumCosmoMathPLN1Deval_range_sum_lnp

Declaration [src]

gdouble
ncm_pln1d_eval_range_sum_lnp (
  NcmPLN1D* pln,
  guint R_min,
  guint R_max,
  gdouble mu,
  gdouble sigma
)

Description [src]

Evaluate the cumulative Poisson–Lognormal probability by summing over a range of R values. This computes: ∑_{R=R_min}^{R_max} P(R|μ,σ)

This is more efficient than calling ncm_pln1d_eval_p repeatedly as it reuses the shifted Gauss-Hermite nodes for all R values.

The shift point z is computed using the central R value to ensure good accuracy across the range.

Parameters

R_min

Type: guint

Minimum Poisson rate parameter (inclusive).

R_max

Type: guint

Maximum Poisson rate parameter (inclusive).

mu

Type: gdouble

Log-normal mean (location parameter).

sigma

Type: gdouble

Log-normal standard deviation (scale parameter).

Return value

Type: gdouble

The logarithm of the cumulative probability.