cosmicfish_pylib.fisher_operations.marginalise

cosmicfish_pylib.fisher_operations.marginalise(fisher_matrix, names)[source]

This function marginalises a Fisher matrix over all parameters but the ones in names. The new Fisher matrix will have the parameters specified in names, in the order specified by names. The calculation is performed in the numerically stable way.

Parameters:
  • fisher_matrix (cosmicfish_pylib.fisher_matrix.fisher_matrix) – input Fisher matrix
  • names (list of string) – list of names of the parameters of the output Fisher matrix, in the order that will appear in the output Fisher matrix. All other parameters will be marginalized over.
Returns:

A Fisher matrix with the marginalized parameters

Return type:

cosmicfish_pylib.fisher_matrix.fisher_matrix