pywr.parameters.AnnualHarmonicSeriesParameter¶
-
class
pywr.parameters.AnnualHarmonicSeriesParameter¶ A Parameter which returns the value from an annual harmonic series
- This Parameter comprises a series N cosine function with a period of 365
- days. The calculation is performed using the Julien day of the year minus 1 This causes a small discontinuity in non-leap years.
\[f(t) = A + \sum_{n=1}^N A_n\cdot \cos((2\pi nt)/365+\phi_n)\]Parameters: - mean : float
Mean value for the series (i.e. the position of zeroth harmonic)
- amplitudes : array_like
The amplitudes for the N harmonic cosine functions. Must be the same length as phases.
- phases : array_like
The phase shift of the N harmonic cosine functions. Must be the same length as amplitudes.
-
__init__($self, /, *args, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
afterbeforefinishget_all_valuesget_double_lower_boundsget_double_upper_boundsget_double_variablesget_integer_lower_boundsget_integer_upper_boundsget_integer_variablesget_valueloadlower_boundsregisterresetset_double_variablesset_integer_variablessetupunregisterupdateupper_boundsvalueAttributes
amplitudeschildrencommentdouble_sizeinteger_sizeis_variablemeanmodelnameparentsphasessize