pywr.parameters.InterpolatedQuadratureParameter

class pywr.parameters.InterpolatedQuadratureParameter(model, upper_parameter, x, y, lower_parameter=None, interp_kwargs=None, **kwargs)

Parameter value is equal to the quadrature of the interpolation of another parameter

Parameters
upper_parameterParameter

Upper value of the interpolated interval to integrate over.

xarray_like

x coordinates of the data points for interpolation.

yarray_like

y coordinates of the data points for interpolation.

lower_parameterParameter or None

Lower value of the interpolated interval to integrate over. Can be None in which case the lower value of interval is zero.

interp_kwargsdict

Dictionary of keyword arguments to pass to scipy.interpolate.interp1d class and used for interpolation.

__init__(model, upper_parameter, x, y, lower_parameter=None, interp_kwargs=None, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(model, upper_parameter, x, y[, …])

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 ts, …)

Attributes

children

comment

comment: unicode

double_size

double_size: ‘int’

integer_size

integer_size: ‘int’

interp_kwargs

is_variable

is_variable: ‘bool’

lower_parameter

model

name

parents

size

upper_parameter