Class InputRainfall#

Inheritance Relationships#

Base Type#

Class Documentation#

class InputRainfall : public Seasonality

Implements seasonality by modelling the rainfall contribution to carrying capacity from daily rainfall data.

Note

This class expects rainfall data for either every day of a year (365 days) or every day of the simulation (max_t).Annual data will be automatically looped for simulations longer than a year.

Public Functions

InputRainfall(InputRainfallParams *params)

InputRainfall constructor.

Parameters:

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

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

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

Models rainfall contribution as an exponential of daily rainfall.

\[ \alpha = \alpha_0 + \alpha_1 (1 - e^{-\textrm{R} r_d}), \]
where \( \alpha \) is the carrying capacity, \( \alpha_0 \) is the baseline contribution, \( \alpha_1 \) is the factor accounting for rainfall contribution, \( \textrm{R} \) is the responsiveness to the rainfall contribution and \( r_d \) is the rainfall for the given day.

Parameters:
  • day[in] simulation day

  • alpha0[in] baseline contribution to the carrying capacity

Returns:

The carrying-capacity.