firecrown.likelihood.gaussian

Backward compatibility shim for firecrown.likelihood.gaussian.

This module re-exports ConstGaussian from its current location (firecrown.likelihood._gaussian) to preserve compatibility with code that imports from the old firecrown.likelihood.gaussian path.

Classes

ConstGaussian

Base class for constant covariance Gaussian likelihoods.

Module Contents

class firecrown.likelihood.gaussian.ConstGaussian(statistics, use_cholesky=True)

Bases: firecrown.likelihood._gaussfamily.GaussFamily

Inheritance diagram of firecrown.likelihood.gaussian.ConstGaussian

Base class for constant covariance Gaussian likelihoods.

Provides shared implementations of compute_loglike and make_realization_vector for all constant covariance Gaussian likelihood variants.

Parameters:
  • statistics (collections.abc.Sequence[firecrown.likelihood._base.Statistic])

  • use_cholesky (bool)

compute_loglike(tools)

Compute the log-likelihood.

Params tools:

The modeling tools used to compute the likelihood.

Returns:

The log-likelihood.

Parameters:

tools (firecrown.modeling_tools.ModelingTools)

Return type:

float

make_realization_vector()

Create a new (randomized) realization of the model.

Returns:

A new realization of the model

Return type:

numpy.ndarray