Class SineRainfall#

Inheritance Relationships#

Base Type#

Class Documentation#

class SineRainfall : public Seasonality

Implements seasonality by modelling the rainfall contribution to carrying capacity as a sinusoid wave.

Most useful for theoretical applications.

Public Functions

SineRainfall(SineRainfallParams *params)

SineRainfall constructor.

Parameters:

params[in] seasonality parameters for sine rainfall-type seasonality

inline ~SineRainfall()
virtual double alpha(int day, double alpha0) override

Computes the carrying-capacity alpha value for the given day and alpha0.

Models rainfall contribution as a sine wave.

\[ \alpha = \alpha_0 + \alpha_1 \left(1 + \textrm{A}\sin\left(\frac{2 \pi d}{365}\right)\right), \]
where \( \alpha \) is the carrying capacity, \( \alpha_0 \) is the baseline contribution, \( \alpha_1 \) is the factor accounting for rainfall contribution, \( \textrm{A} \) is the amplitude of rainfall fluctuations and \( d \) is the given simulation day.

Parameters:
  • day[in] simulation day

  • alpha0[in] baseline contribution to the carrying capacity

Returns:

The carrying-capacity.