33#ifndef _CMGRAPHS_WHALES_H_
34#define _CMGRAPHS_WHALES_H_
45#include "chomp/system/textfile.h"
64 void compute (
const double *xleft,
const double *xright,
65 double *yleft,
double *yright,
int dim,
66 const spcCoord *coord,
int subdiv)
const;
79 double *yleft,
double *yright,
int dim,
const spcCoord *,
int)
const
83 throw "Whales population model: dim = 2 only!";
101 survivalRateJ = one - survivalRateA;
102 else if (options & 0x020)
103 survivalRateJ = survivalRateA;
109 if ((alphaSaved. leftBound () == alpha. leftBound ()) &&
110 (alphaSaved. rightBound () == alpha. rightBound ()))
116 else if (alpha. leftBound () == alpha. rightBound ())
118 static double e = M_E;
119 double b = alpha. leftBound () / e;
137 survivalRateA * adults);
138 IntervalType newJuveniles (alpha * adults * exp (-beta * adults));
141 yleft [0] = newAdults. leftBound ();
142 yright [0] = newAdults. rightBound ();
143 yleft [1] = newJuveniles. leftBound ();
144 yright [1] = newJuveniles. rightBound ();
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.
This class defines a map for the nonlinear density dependent overcompensatory Leslie population model...
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.
MapWhales()
The default constructor.
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.