Rev | Line | |
---|
[394] | 1 | #include "dyffttools.h"
|
---|
| 2 |
|
---|
[534] | 3 | // D. Yvon, CE Saclay, DAPNIA/SPP, 08/99
|
---|
[394] | 4 |
|
---|
| 5 | // Librairie FFTMayer enrobée pour etre utilisable facilement en C++
|
---|
| 6 | // Un debut : D. Yvon 07/99
|
---|
| 7 |
|
---|
| 8 |
|
---|
| 9 | // Fonction de fenetrage D. Yvon
|
---|
| 10 | // Cut est la fraction du tableau ou l'on effectue le bizeau pour imposer
|
---|
| 11 | // par continuite une amplitude zero aux bornes :
|
---|
| 12 | /*
|
---|
| 13 | ------------------
|
---|
| 14 | / \
|
---|
| 15 | / \
|
---|
| 16 | / \
|
---|
| 17 | / Î cuts Î \
|
---|
| 18 | */
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 |
|
---|
| 22 | double DYWindow(double index, double indexMax) {
|
---|
| 23 | double temp;
|
---|
| 24 | double Cut=1./16.;
|
---|
| 25 | if(index<(indexMax/16.)) temp=index/indexMax*16.;
|
---|
| 26 | else if((indexMax-index)<(indexMax/16.)) temp=(indexMax-index)/indexMax*16.;
|
---|
| 27 | else temp=1.;
|
---|
| 28 | return temp;
|
---|
| 29 | }
|
---|
| 30 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.