firecrown.likelihood.gauss_family.statistic.statistic.TrivialStatistic#

class firecrown.likelihood.gauss_family.statistic.statistic.TrivialStatistic[source]#

Bases: Statistic

A minimal statistic only to be used for testing Gaussian likelihoods.

It returns a DataVector and TheoryVector each of which is three elements long. The SACC data provided to TrivialStatistic.read() must supply the necessary values.

Public Methods:

__init__()

Initialize this statistic.

read(sacc_data)

Read the necessary items from the sacc data.

get_data_vector()

Return the data vector; raise exception if there is none.

Inherited from Statistic

__init__([parameter_prefix])

Updatable initialization.

read(_)

Read the data for this statistic and mark it as ready for use.

get_data_vector()

Gets the statistic data vector.

compute_theory_vector(tools)

Compute a statistic from sources, applying any systematics.

get_theory_vector()

Returns the last computed theory vector.

Inherited from Updatable

__init__([parameter_prefix])

Updatable initialization.

__setattr__(key, value)

Set the attribute named key to the supplied value.

set_parameter(key, value)

Sets the parameter to the given value.

set_internal_parameter(key, value)

Assure this InternalParameter has not already been set, and then set it.

set_sampler_parameter(value)

Assure this SamplerParameter has not already been set, and then set it.

update(params)

Update self by calling to prepare for the next MCMC sample.

is_updated()

Determine if the object has been updated.

reset()

Reset the updatable.

required_parameters()

Returns a RequiredParameters object.

get_derived_parameters()

Returns a collection of derived parameters.

Private Methods:

_required_parameters()

Return an empty RequiredParameters.

_get_derived_parameters()

Return an empty DerivedParameterCollection.

_compute_theory_vector(_)

Return a fixed theory vector.

Inherited from Statistic

_reset()

Reset this statistic.

_compute_theory_vector(tools)

Compute a statistic from sources, concrete implementation.

Inherited from Updatable

_update(params)

Method for auxiliary updates to be made to an updatable.

_reset()

Abstract method implemented by all concrete classes to update self.

_required_parameters()

Return a RequiredParameters object containing the information for this class.

_get_derived_parameters()

Returns the derived parameters of an implementation.


_compute_theory_vector(_)[source]#

Return a fixed theory vector.

Parameters:

_ (ModelingTools) –

Return type:

TheoryVector

final _get_derived_parameters()[source]#

Return an empty DerivedParameterCollection.

Return type:

DerivedParameterCollection

final _required_parameters()[source]#

Return an empty RequiredParameters.

Return type:

RequiredParameters

get_data_vector()[source]#

Return the data vector; raise exception if there is none.

Return type:

DataVector

read(sacc_data)[source]#

Read the necessary items from the sacc data.

Parameters:

sacc_data (Sacc) –