firecrown.likelihood.gauss_family.statistic.supernova.Supernova#
- class firecrown.likelihood.gauss_family.statistic.supernova.Supernova(sacc_tracer)[source]#
Bases:
Statistic
A supernova statistic.
This statistic that applies an additive shift M to a supernova’s distance modulus.
- Parameters:
sacc_tracer (
str
) –
Public Methods:
__init__
(sacc_tracer)Initialize this statistic.
read
(sacc_data)Read the data for this statistic from the SACC file.
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.
Gets the statistic data vector.
compute_theory_vector
(tools)Compute a statistic from sources, applying any systematics.
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.
Determine if the object has been updated.
reset
()Reset the updatable.
Returns a RequiredParameters object.
Returns a collection of derived parameters.
Private Methods:
_compute_theory_vector
(tools)Compute SNIa distance statistic using CCL.
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.
Return a RequiredParameters object containing the information for this class.
Returns the derived parameters of an implementation.
- _compute_theory_vector(tools)[source]#
Compute SNIa distance statistic using CCL.
- Parameters:
tools (
ModelingTools
) –- Return type: