Method

NumCosmoMathFitfisher_bias

Declaration [src]

NcmVector*
ncm_fit_fisher_bias (
  NcmFit* fit,
  NcmVector* f_true
)

Description [src]

Calculates the covariance from the Fisher matrix and the bias vector, see ncm_dataset_fisher_matrix_bias(). The bias vector is calculated using the the theory vector f_true as the true model expectation values.

Note that this function does not use the gradient defined in the fit object, it always uses the accurate numerical differentiation methods implemented in the NcmDiff object.

It sets the covariance matrix in the NcmFitState object associated to the fit object. Moreover, it computes the final bias vector, that is, the inverse of the Fisher matrix times the bias vector returns it.

Parameters

f_true

Type: NcmVector

A NcmVector.

The data is owned by the caller of the method.

Return value

Type: NcmVector

The bias vector.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.