32#ifndef _CMGRAPHS_HARVESTING_H_
33#define _CMGRAPHS_HARVESTING_H_
44#include "chomp/system/textfile.h"
63 void compute (
const double *xleft,
const double *xright,
64 double *yleft,
double *yright,
int dim,
65 const spcCoord *coord,
int subdiv)
const;
78 double *yleft,
double *yright,
int dim,
const spcCoord *,
int)
const
82 throw "Population model with harvesting: dim = 2 only!";
103 else if (model & 0x002)
105 else if (model & 0x004)
106 harvestingRateJ = harvestingRateA;
108 survivalRateJ = one - survivalRateA;
109 else if (model & 0x020)
110 survivalRateJ = survivalRateA;
116 if ((alphaSaved. leftBound () == alpha. leftBound ()) &&
117 (alphaSaved. rightBound () == alpha. rightBound ()))
123 else if (alpha. leftBound () == alpha. rightBound ())
125 static double e = M_E;
126 double b = alpha. leftBound () / e;
146 exp (-beta * harvestedAdults));
148 (harvRemainingJ * survivalRateJ * juveniles +
149 harvRemainingA * survivalRateA * adults);
151 yleft [0] = newAdults. leftBound ();
152 yright [0] = newAdults. rightBound ();
153 yleft [1] = newJuveniles. leftBound ();
154 yright [1] = newJuveniles. rightBound ();
This class defines a map for the nonlinear density dependent overcompensatory Leslie population model...
MapHarvesting()
The default constructor.
void compute(const double *xleft, const double *xright, double *yleft, double *yright, int dim, const spcCoord *coord, int subdiv) const
Computes the image of a box whose left and right coordinates are given.
This is an abstract class which defines the interface to other classes that describe maps for the use...
const double & getLeftParam(int n) const
Returns the left value of the given parameter.
const double & getRightParam(int n) const
Returns the right value of the given parameter.
Data types for interval arithmetic.
void resetRounding()
This function resets rounding switches of the processor and sets rounding to the nearest.
bool testIntervals(bool throwException=false)
Testing interval arithmetic.
capd::DInterval IntervalType
The type of an interval (from the CAPD library 2.9/3.0 beta).
int spcCoord
The type of coordinates of cubes in the phase space.