ReGen Class Reference

ReGen determines the stochastic time series based on the specified parameters. More...

#include <ReGen.h>

Collaboration diagram for ReGen:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ReGen (RAINPARAMETERS *p_RainP)
 ~ReGen ()
void drawYear (void)
 creates a new one-year time series
float getRain (int day) const
 returns the rain for a specific day of year (Aug 1 = day 0)
float getAnnualRain (void) const
 returns the annual rain amount
float getPeriodRain (int start_day, int end_day) const
 returns the rain amount for a specific period, end day included

Protected Member Functions

valarray< float > calcGauss (float amplitude, float location, float width, int shape=2)
 function for a peak Gauss curve $ A*exp(-\frac{(mo-L)^S}{2*W^2}) $
void calcRain (void)
 does the calculations

Protected Attributes

KW_RNG::RNG Zzg
 a random number generator
float theAnnualRain
 annual rain volume (mm)
RAINPARAMETERSpP
 pointer to the parameters
valarray< float > theDays
 array of days of year, i.e. 0 ... 364
valarray< float > rainProb
 array of daily rain probability
valarray< float > meanRainVolume
 aray of mean daily rain amount
valarray< float > rainyDay
 array of zeros and ones for rainy and dry days
valarray< float > rainVolume
 array of daily rain volume amount

Detailed Description

ReGen determines the stochastic time series based on the specified parameters.

Definition at line 66 of file ReGen.h.


The documentation for this class was generated from the following files:
Generated on Tue May 1 23:39:16 2007 for ReGen by  doxygen 1.5.1