Last change
on this file was
5128,
checked in by westram, 17 years ago
|
- removed my own strange defines
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
843 bytes
|
Line | |
---|
1 | #ifndef __FRAND_H |
---|
2 | #define __FRAND_H |
---|
3 | |
---|
4 | #ifndef __DEFINES_H |
---|
5 | #include "defines.h" |
---|
6 | #endif |
---|
7 | |
---|
8 | typedef struct S_Frand |
---|
9 | { |
---|
10 | double val, /* Interner Wert des Niederfrequenzgenerators */ |
---|
11 | alpha, /* Faktor fr konstanten Zufallsgenerator */ |
---|
12 | beta, /* Faktor fr niederfrequenten Zufallsgenerator */ |
---|
13 | medium; /* Mittelwert */ |
---|
14 | int teiler; /* Teiler fr Niederfrequenzgenerator */ |
---|
15 | |
---|
16 | } *Frand; |
---|
17 | |
---|
18 | /* Um den Frequenzgenerator an der selben Stelle wiederaufzusetzen, */ |
---|
19 | /* muá der Wert 'val' gemerkt und spter wiedereingesetzt werden. */ |
---|
20 | |
---|
21 | #ifdef __cplusplus |
---|
22 | extern "C" { |
---|
23 | #endif |
---|
24 | |
---|
25 | Frand initFrand (double medium, double low, double high); |
---|
26 | void freeFrand (Frand f); |
---|
27 | |
---|
28 | double getFrand (Frand f); |
---|
29 | |
---|
30 | /* Zufallszahl (0.0 bis 1.0): */ |
---|
31 | |
---|
32 | double randProb (void); |
---|
33 | |
---|
34 | #ifdef __cplusplus |
---|
35 | } |
---|
36 | #endif |
---|
37 | |
---|
38 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.