pyhs3.distributions.histfactory.modifiers.ParameterModifier¶
- class pyhs3.distributions.histfactory.modifiers.ParameterModifier(**data)[source]¶
Base for modifiers that use a single parameter name.
- Parameters:
data (
Any)
- __init__(**data)¶
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (
Any)
Methods
apply(context, rates)Apply this modifier to the given rates tensor.
expression(context)Return the modifier's contribution (additive term or multiplicative factor).
Attributes
Auxiliary data value associated with this modifier (single float).
Return parameter names this modifier depends on.
Whether this modifier applies additively to rates.
Whether this modifier applies multiplicatively to rates.
- abstractmethod ParameterModifier.apply(context, rates)[source]¶
Apply this modifier to the given rates tensor.
- abstractmethod ParameterModifier.expression(context)¶
Return the modifier’s contribution (additive term or multiplicative factor).
- ParameterModifier.auxdata¶
Auxiliary data value associated with this modifier (single float).
- ParameterModifier.dependencies¶
Return parameter names this modifier depends on.
- ParameterModifier.is_additive¶
Whether this modifier applies additively to rates.
- ParameterModifier.is_multiplicative¶
Whether this modifier applies multiplicatively to rates.
- ParameterModifier.parameter¶
- ParameterModifier.name¶
- ParameterModifier.type¶
- ParameterModifier.application¶