pywr.recorders.MeanParameterRecorder¶
-
class
pywr.recorders.MeanParameterRecorder(*args, **kwargs)¶ Record the mean value of a Parameter during a simulation.
This recorder can be used to track the mean of the values returned by a Parameter during a models simulation. An optional factor can be provided to apply a linear scaling of the values.
- Parameters
- modelpywr.core.Model
- parampywr.parameters.Parameter
The parameter to record.
- namestr (optional)
The name of the recorder
- factorfloat (default=1.0)
Scaling factor for the values of param.
-
__init__(*args, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(*args, **kwargs)Initialize self.
after(self)aggregated_value(self)before(self)finish(self)is_constraint_violated(self)Returns true if the value from this Recorder violates its constraint bounds.
load(type cls, model, data)register(type cls)reset(self)setup(self)unregister(type cls)values(self)Attributes
agg_funcchildrencommentcomment: unicode
constraint_lower_boundsconstraint_upper_boundsepsilonepsilon: ‘double’
factorfactor: ‘double’
ignore_nanignore_nan: ‘bool’
is_constraintReturns true if either upper or lower constraint bounds is defined.
is_double_bounded_constraintReturns true if upper and lower constraint bounds are both defined and not-equal to one another.
is_equality_constraintReturns true if upper and lower constraint bounds are both defined and equal to one another.
is_lower_bounded_constraintReturns true if lower constraint bounds is defined and upper constraint bounds is not.
is_objectiveis_upper_bounded_constraintReturns true if upper constraint bounds is defined and lower constraint bounds is not.
modelnameparameterparents