firecrown.modeling_tools.PowerspectrumModifier

firecrown.modeling_tools.PowerspectrumModifier#

class firecrown.modeling_tools.PowerspectrumModifier(parameter_prefix=None)[source]#

Bases: Updatable, ABC

Abstract base class for power spectrum modifiers.

Parameters:

parameter_prefix (None | str) –

Public Methods:

compute_p_of_k_z(tools)

Compute the 3D power spectrum P(k, z).

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(key, 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:

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.


abstract compute_p_of_k_z(tools)[source]#

Compute the 3D power spectrum P(k, z).

Parameters:

tools (ModelingTools) –

Return type:

Pk2D