pywr.parameters.PiecewiseIntegralParameter¶
-
class
pywr.parameters.PiecewiseIntegralParameter(model, parameter, x, y, *args, **kwargs)¶ Parameter that integrates a piecewise function.
This parameter calculates the integral of a piecewise function. The piecewise function is given as two arrays (x and y) and is assumed to start from (0, 0). The values of x should be monotonically increasing and greater than zero.
- Parameters
- parameterParameter
The parameter the defines the right hand bounds of the integration.
- xiterable of doubles
- yiterable of doubles
-
__init__(*args, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(*args, **kwargs)Initialize self.
after(self)before(self)finish(self)get_all_values(self)get_double_lower_bounds(self)get_double_upper_bounds(self)get_double_variables(self)get_integer_lower_bounds(self)get_integer_upper_bounds(self)get_integer_variables(self)get_value(self, ScenarioIndex scenario_index)load(type cls, model, data)register(type cls)reset(self)set_double_variables(self, double[)set_integer_variables(self, int[)setup(self)unregister(type cls)value(self, Timestep timestep, …)Attributes
childrencommentcomment: unicode
double_sizedouble_size: ‘int’
integer_sizeinteger_size: ‘int’
is_variableis_variable: ‘bool’
modelnameparameterparameter: pywr.parameters._parameters.Parameter
parentssizexx: ‘double[:]’
yy: ‘double[:]’