#include "hmpdf_object.h"
Functions | |
int | hmpdf_get_cov (hmpdf_obj *d, int Nbins, double binedges[Nbins+1], double cov[Nbins *Nbins], int noisy) |
int | hmpdf_get_cov_diagnostics (hmpdf_obj *d, int *Nphi, double **phi, double **phiweights, double **corr_diagn) |
int hmpdf_get_cov | ( | hmpdf_obj * | d, |
int | Nbins, | ||
double | binedges[Nbins+1], | ||
double | cov[Nbins *Nbins], | ||
int | noisy | ||
) |
Returns the covariance matrix of the one-point PDF.
[in,out] | d | hmpdf_init() must have been called on d |
[in] | Nbins | number of bins the covariance matrix will be binned into |
[in] | binedges | monotonically increasing array of length Nbins+1 |
[out] | cov | the binned covariance matrix will be written into the first Nbins*Nbins elements of this output array |
[in] | noisy | if set to non-zero, the covariance matrix will include Gaussian noise with power spectrum hmpdf_noise_pwr. |
int hmpdf_get_cov_diagnostics | ( | hmpdf_obj * | d, |
int * | Nphi, | ||
double ** | phi, | ||
double ** | phiweights, | ||
double ** | corr_diagn | ||
) |
Returns diagnostic outputs for the covariance matrix computation. The main use of this function is to identify numerical instability at small pixel separations.
[in,out] | d | hmpdf_init() must have been called on d |
[out] | Nphi | the number of pixel separations will be written into the return value |
[out] | phi | pointer will be set to an array of length Nphi, containing the pixel separations used internally (in radians) |
[out] | phiweights | pointer will be set to an array of length Nphi, containing the weights assigned to each pixel separation in the summation. This can occasionally be used to tune the hmpdf_pixelexact_max option. |
[out] | corr_diagn | pointer will be set to an array of length Nphi, containing the correlation function at the pixel separation sample points. Noisy behaviour at small phi is a sign of numerical instability. |