![]() |
ALMaSS
1.2 (after EcoStack, March 2024)
The Animal, Landscape and Man Simulation System
|
A curve for feeding time derived from Pettifor et al (2000). Journal of Applied Ecology 37: 103-135. More...
#include <CurveClasses.h>
Public Member Functions | |
PettiforFeedingTimeCurveClass (double a_A, double a_B, double a_C, bool a_reversecurve, double a_MaxX, double a_MinX, const char *a_name) | |
virtual | ~PettiforFeedingTimeCurveClass () |
![]() | |
CurveClass (bool a_reversecurve, double a_MaxX, double a_MinX, const char *a_name) | |
virtual | ~CurveClass () |
virtual double | GetY (double a_X) |
virtual void | WriteDataFile (int a_step) |
Protected Member Functions | |
virtual double | DoCalc (double a_x) |
The specific calulation of y for a given x. More... | |
![]() | |
virtual void | CalculateCurveValues () |
fills in the curve for 10,000 values from MinX to MaxX More... | |
Protected Attributes | |
double | m_parameterA |
Parameter A is the maximum feeding time. More... | |
double | m_parameterB |
Parameter B is the minimum feeding time. More... | |
double | m_parameterC |
Parameter C is the threshold floksize above which feeding time remains at maximum. More... | |
![]() | |
double | m_parameterMaxX |
A parameter for a the maximum value of X we consider. More... | |
double | m_parameterMinX |
A parameter for a the minimum value of X we consider. More... | |
double | m_step |
The size of each step on the X-axis. More... | |
double | m_step_inv |
The inverse of m_step. More... | |
double * | m_values |
The values of y we store for each X. More... | |
string | m_name |
A scaler for the x-values. More... | |
bool | m_reversecurve |
If true the values fall from 1 to zero, otherwise its zero to 1. More... | |
A curve for feeding time derived from Pettifor et al (2000). Journal of Applied Ecology 37: 103-135.
PettiforFeedingTimeCurveClass::PettiforFeedingTimeCurveClass | ( | double | a_A, |
double | a_B, | ||
double | a_C, | ||
bool | a_reversecurve, | ||
double | a_MaxX, | ||
double | a_MinX, | ||
const char * | a_name | ||
) |
References CurveClass::CalculateCurveValues(), m_parameterA, m_parameterB, and m_parameterC.
|
protectedvirtual |
The specific calulation of y for a given x.
Reimplemented from CurveClass.
References m_parameterA, m_parameterB, and m_parameterC.
|
protected |
Parameter A is the maximum feeding time.
Referenced by DoCalc(), and PettiforFeedingTimeCurveClass().
|
protected |
Parameter B is the minimum feeding time.
Referenced by DoCalc(), and PettiforFeedingTimeCurveClass().
|
protected |
Parameter C is the threshold floksize above which feeding time remains at maximum.
Referenced by DoCalc(), and PettiforFeedingTimeCurveClass().