delta_distribution.h#

#include <sif/structures/delta_distribution.h>
SIF_STRUCTURES_DELTA_DISTRIBUTION_H#

PDF of the smoothed density contrast, one histogram per smoothing radius.

Where the spectral moments summarise the field by its variance and its derivatives, this keeps the whole one-point distribution – which is where the non-Gaussian information lives, and so what a phase-randomized surrogate is compared against.

struct sif_delta_distribution_t#

PDF of the smoothed density contrast, one row per smoothing radius.

Produced by sif_delta_distribution_grid(), released with sif_delta_distribution_free(). Every row shares one set of bin edges, so rows can be compared across radii directly.

uint64_t n_samples#

Grid cells behind each row. Samples outside the histogram’s range are counted here but not binned, so a row integrates to the fraction of samples that fell in range rather than to 1. Compare the two to find out how much of the distribution the bounds are cutting off.

sif_real *radii#

n_radii smoothing radii.

sif_real *delta_edges#

n_bins + 1 bin edges, shared by every row.

sif_real *distributions#

n_radii * n_bins values, row-major.

void sif_delta_distribution_free(sif_delta_distribution_t *dist)#

Release a distribution set.

Parameters:
  • dist – Set to free. NULL is accepted and ignored.