Last change
on this file since 697 was 680, checked in by ansari, 26 years ago |
modifs args buit.h - Reza 9/12/99
|
File size:
2.0 KB
|
Line | |
---|
1 | #ifndef BRUIT_H_SEEN
|
---|
2 | #define BRUIT_H_SEEN
|
---|
3 |
|
---|
4 | class NoiseGenerator {
|
---|
5 | public :
|
---|
6 | NoiseGenerator(float sigma=1.);
|
---|
7 | virtual ~NoiseGenerator();
|
---|
8 | virtual float Noise();
|
---|
9 | inline unsigned long int NCoups() { return(mNCoups); }
|
---|
10 |
|
---|
11 | protected :
|
---|
12 | unsigned long int mNCoups;
|
---|
13 | float mSigma;
|
---|
14 | };
|
---|
15 |
|
---|
16 | class RWalkNoise : public NoiseGenerator {
|
---|
17 | public :
|
---|
18 | RWalkNoise(float sigma=1.);
|
---|
19 | virtual ~RWalkNoise();
|
---|
20 | virtual float Noise();
|
---|
21 |
|
---|
22 | protected:
|
---|
23 | float mState;
|
---|
24 | };
|
---|
25 |
|
---|
26 | class OOFNoise : public NoiseGenerator {
|
---|
27 | public :
|
---|
28 | enum {
|
---|
29 | ACF_Def = 0,
|
---|
30 | ACF_Exp = 1
|
---|
31 | };
|
---|
32 | OOFNoise(float sigma=1., int typacf=ACF_Exp,
|
---|
33 | int mem=128, float tau=1.);
|
---|
34 | virtual ~OOFNoise();
|
---|
35 | virtual float Noise();
|
---|
36 | void Print();
|
---|
37 |
|
---|
38 | protected:
|
---|
39 | int mTypACF;
|
---|
40 | int mMemL;
|
---|
41 | float mTau;
|
---|
42 | double* mState;
|
---|
43 | double* mDyn;
|
---|
44 | };
|
---|
45 |
|
---|
46 | class EXPNoise : public NoiseGenerator {
|
---|
47 | public :
|
---|
48 | enum {
|
---|
49 | ACF_Def = 0,
|
---|
50 | ACF_Exp = 1
|
---|
51 | };
|
---|
52 | EXPNoise(float sigma=1., int typacf=ACF_Exp,
|
---|
53 | int mem=128, float tau=1.);
|
---|
54 | virtual ~EXPNoise();
|
---|
55 | virtual float Noise();
|
---|
56 | void Print();
|
---|
57 |
|
---|
58 | protected:
|
---|
59 | int mTypACF;
|
---|
60 | long int mMemL;
|
---|
61 | float mTau;
|
---|
62 | double* mState;
|
---|
63 | double* mDyn;
|
---|
64 | };
|
---|
65 |
|
---|
66 | class MemNoise : public NoiseGenerator {
|
---|
67 | public :
|
---|
68 | enum {
|
---|
69 | ACF_Def = 0,
|
---|
70 | ACF_Exp = 1
|
---|
71 | };
|
---|
72 | MemNoise(float sigma=1., int mem=128, float tau=1., int ava=4096);
|
---|
73 | virtual ~MemNoise();
|
---|
74 | virtual float Noise();
|
---|
75 | virtual float Avance(long Asauter);
|
---|
76 | int Print();
|
---|
77 |
|
---|
78 | protected:
|
---|
79 | int mTypACF;
|
---|
80 | int mMemL; int mCoupHaut;
|
---|
81 | unsigned long mNappel;
|
---|
82 | unsigned long mNappLast;
|
---|
83 | float mTeappel;
|
---|
84 | float mTau;
|
---|
85 | float mduree;
|
---|
86 | float mTdernier;
|
---|
87 | int mNtirage;
|
---|
88 | int mMemPos;
|
---|
89 | int mMemNeg;
|
---|
90 | float* mStPos;
|
---|
91 | float* mTePos;
|
---|
92 | float* mStNeg;
|
---|
93 | float* mTeNeg;
|
---|
94 | };
|
---|
95 |
|
---|
96 | class SumNoise : public NoiseGenerator {
|
---|
97 | public :
|
---|
98 | SumNoise(float fknee, float sig=1., int mem=32, float tau=10.);
|
---|
99 | virtual ~SumNoise();
|
---|
100 | virtual float Noise();
|
---|
101 |
|
---|
102 | protected:
|
---|
103 | MemNoise* mn;
|
---|
104 | };
|
---|
105 |
|
---|
106 |
|
---|
107 | #endif
|
---|
108 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.