/Users/huttone/Devel/sedflux-new/sedflux/trunk/ew/hydrotrend/hydroran2.c File Reference

#include <math.h>
#include "hydroparams.h"
#include <stdio.h>

Go to the source code of this file.

Defines

#define IM1   2147483563
#define IM2   2147483399
#define AM   (1.0/IM1)
#define IMM1   (IM1-1)
#define IA1   40014
#define IA2   40692
#define IQ1   53668
#define IQ2   52774
#define IR1   12211
#define IR2   3791
#define NTAB   32
#define NDIV   (1+IMM1/NTAB)
#define EPS   1.2e-7
#define RNMX   (1.0-EPS)
#define BIM1   2147483563
#define BIM2   2147483399
#define BAM   (1.0/BIM1)
#define BIMM1   (BIM1-1)
#define BIA1   40014
#define BIA2   40692
#define BIQ1   53668
#define BIQ2   52774
#define BIR1   12211
#define BIR2   3791
#define BNTAB   32
#define BNDIV   (1+BIMM1/BNTAB)
#define BEPS   1.2e-7
#define BRNMX   (1.0-BEPS)
#define CIM1   2147483563
#define CIM2   2147483399
#define CAM   (1.0/CIM1)
#define CIMM1   (CIM1-1)
#define CIA1   40014
#define CIA2   40692
#define CIQ1   53668
#define CIQ2   52774
#define CIR1   12211
#define CIR2   3791
#define CNTAB   32
#define CNDIV   (1+CIMM1/CNTAB)
#define CEPS   1.2e-7
#define CRNMX   (1.0-CEPS)
#define DIM1   2147483563
#define DIM2   2147483399
#define DAM   (1.0/DIM1)
#define DIMM1   (DIM1-1)
#define DIA1   40014
#define DIA2   40692
#define DIQ1   53668
#define DIQ2   52774
#define DIR1   12211
#define DIR2   3791
#define DNTAB   32
#define DNDIV   (1+DIMM1/DNTAB)
#define DEPS   1.2e-7
#define DRNMX   (1.0-DEPS)

Functions

float hydroran2 (long *idum)
float hydroran3 (long *idumb)
float hydroran4 (long *idumc)
float hydroran5 (long *idumd)


Define Documentation

#define AM   (1.0/IM1)

Definition at line 24 of file hydroran2.c.

Referenced by eh_ran0(), eh_ran1(), eh_ran2(), and hydroran2().

#define BAM   (1.0/BIM1)

Definition at line 39 of file hydroran2.c.

Referenced by hydroran3().

#define BEPS   1.2e-7

Definition at line 49 of file hydroran2.c.

#define BIA1   40014

Definition at line 41 of file hydroran2.c.

Referenced by hydroran3().

#define BIA2   40692

Definition at line 42 of file hydroran2.c.

Referenced by hydroran3().

#define BIM1   2147483563

Definition at line 37 of file hydroran2.c.

Referenced by hydroran3().

#define BIM2   2147483399

Definition at line 38 of file hydroran2.c.

Referenced by hydroran3().

#define BIMM1   (BIM1-1)

Definition at line 40 of file hydroran2.c.

Referenced by hydroran3().

#define BIQ1   53668

Definition at line 43 of file hydroran2.c.

Referenced by hydroran3().

#define BIQ2   52774

Definition at line 44 of file hydroran2.c.

Referenced by hydroran3().

#define BIR1   12211

Definition at line 45 of file hydroran2.c.

Referenced by hydroran3().

#define BIR2   3791

Definition at line 46 of file hydroran2.c.

Referenced by hydroran3().

#define BNDIV   (1+BIMM1/BNTAB)

Definition at line 48 of file hydroran2.c.

Referenced by hydroran3().

#define BNTAB   32

Definition at line 47 of file hydroran2.c.

Referenced by hydroran3().

#define BRNMX   (1.0-BEPS)

Definition at line 50 of file hydroran2.c.

Referenced by hydroran3().

#define CAM   (1.0/CIM1)

Definition at line 54 of file hydroran2.c.

Referenced by hydroran4().

#define CEPS   1.2e-7

Definition at line 64 of file hydroran2.c.

#define CIA1   40014

Definition at line 56 of file hydroran2.c.

Referenced by hydroran4().

#define CIA2   40692

Definition at line 57 of file hydroran2.c.

Referenced by hydroran4().

#define CIM1   2147483563

Definition at line 52 of file hydroran2.c.

Referenced by hydroran4().

#define CIM2   2147483399

Definition at line 53 of file hydroran2.c.

Referenced by hydroran4().

#define CIMM1   (CIM1-1)

Definition at line 55 of file hydroran2.c.

Referenced by hydroran4().

#define CIQ1   53668

Definition at line 58 of file hydroran2.c.

Referenced by hydroran4().

#define CIQ2   52774

Definition at line 59 of file hydroran2.c.

Referenced by hydroran4().

#define CIR1   12211

Definition at line 60 of file hydroran2.c.

Referenced by hydroran4().

#define CIR2   3791

Definition at line 61 of file hydroran2.c.

Referenced by hydroran4().

#define CNDIV   (1+CIMM1/CNTAB)

Definition at line 63 of file hydroran2.c.

Referenced by hydroran4().

#define CNTAB   32

Definition at line 62 of file hydroran2.c.

Referenced by hydroran4().

#define CRNMX   (1.0-CEPS)

Definition at line 65 of file hydroran2.c.

Referenced by hydroran4().

#define DAM   (1.0/DIM1)

Definition at line 69 of file hydroran2.c.

Referenced by hydroran5().

#define DEPS   1.2e-7

Definition at line 79 of file hydroran2.c.

#define DIA1   40014

Definition at line 71 of file hydroran2.c.

Referenced by hydroran5().

#define DIA2   40692

Definition at line 72 of file hydroran2.c.

Referenced by hydroran5().

#define DIM1   2147483563

Definition at line 67 of file hydroran2.c.

Referenced by hydroran5().

#define DIM2   2147483399

Definition at line 68 of file hydroran2.c.

Referenced by hydroran5().

#define DIMM1   (DIM1-1)

Definition at line 70 of file hydroran2.c.

Referenced by hydroran5().

#define DIQ1   53668

Definition at line 73 of file hydroran2.c.

Referenced by hydroran5().

#define DIQ2   52774

Definition at line 74 of file hydroran2.c.

Referenced by hydroran5().

#define DIR1   12211

Definition at line 75 of file hydroran2.c.

Referenced by hydroran5().

#define DIR2   3791

Definition at line 76 of file hydroran2.c.

Referenced by hydroran5().

#define DNDIV   (1+DIMM1/DNTAB)

Definition at line 78 of file hydroran2.c.

Referenced by hydroran5().

#define DNTAB   32

Definition at line 77 of file hydroran2.c.

Referenced by hydroran5().

#define DRNMX   (1.0-DEPS)

Definition at line 80 of file hydroran2.c.

Referenced by hydroran5().

#define EPS   1.2e-7

Definition at line 34 of file hydroran2.c.

#define IA1   40014

Definition at line 26 of file hydroran2.c.

Referenced by eh_ran2(), hydroran2(), and hydroran3().

#define IA2   40692

Definition at line 27 of file hydroran2.c.

Referenced by eh_ran2(), and hydroran2().

#define IM1   2147483563

Definition at line 22 of file hydroran2.c.

Referenced by eh_ran2(), and hydroran2().

#define IM2   2147483399

Definition at line 23 of file hydroran2.c.

Referenced by eh_ran2(), and hydroran2().

#define IMM1   (IM1-1)

Definition at line 25 of file hydroran2.c.

Referenced by eh_ran2(), and hydroran2().

#define IQ1   53668

Definition at line 28 of file hydroran2.c.

Referenced by eh_ran2(), hydroran2(), and hydroran3().

#define IQ2   52774

Definition at line 29 of file hydroran2.c.

Referenced by eh_ran2(), hydroran2(), and hydroran3().

#define IR1   12211

Definition at line 30 of file hydroran2.c.

Referenced by eh_ran2(), hydroran2(), and hydroran3().

#define IR2   3791

Definition at line 31 of file hydroran2.c.

Referenced by eh_ran2(), and hydroran2().

#define NDIV   (1+IMM1/NTAB)

Definition at line 33 of file hydroran2.c.

Referenced by eh_ran1(), eh_ran2(), and hydroran2().

#define NTAB   32

Definition at line 32 of file hydroran2.c.

Referenced by eh_ran1(), eh_ran2(), and hydroran2().

#define RNMX   (1.0-EPS)

Definition at line 35 of file hydroran2.c.

Referenced by eh_ran1(), eh_ran2(), and hydroran2().


Function Documentation

float hydroran2 ( long *  idum  ) 

Definition at line 87 of file hydroran2.c.

References AM, IA1, IA2, IM1, IM2, IMM1, IQ1, IQ2, IR1, IR2, jj, NDIV, NTAB, and RNMX.

Referenced by hydrorandom().

float hydroran3 ( long *  idumb  ) 

Definition at line 135 of file hydroran2.c.

References BAM, BIA1, BIA2, BIM1, BIM2, BIMM1, BIQ1, BIQ2, BIR1, BIR2, BNDIV, BNTAB, BRNMX, IA1, IQ1, IQ2, and IR1.

Referenced by hydroshuffle().

float hydroran4 ( long *  idumc  ) 

Definition at line 184 of file hydroran2.c.

References CAM, CIA1, CIA2, CIM1, CIM2, CIMM1, CIQ1, CIQ2, CIR1, CIR2, CNDIV, CNTAB, and CRNMX.

Referenced by eh_get_fuzzy_int(), and hydrosetnumberoutlet().

float hydroran5 ( long *  idumd  ) 

Definition at line 233 of file hydroran2.c.

References DAM, DIA1, DIA2, DIM1, DIM2, DIMM1, DIQ1, DIQ2, DIR1, DIR2, DNDIV, DNTAB, and DRNMX.

Referenced by hydroqfractionshuffle().


Generated on Fri Jan 4 18:04:17 2008 for sedflux by  doxygen 1.5.2