3
|
1 #ifdef POLLEN_STUFF
|
|
2 {
|
|
3 double alpha, beta;
|
|
4 char *alpha_str = getenv("POLLEN_ALPHA"), *beta_str = getenv("POLLEN_BETA");
|
|
5
|
|
6 if (alpha_str && beta_str) {
|
|
7 alpha = atof(alpha_str);
|
|
8 beta = atof(beta_str);
|
|
9
|
|
10 if (alpha < -M_PI || alpha >= M_PI) {
|
|
11 fprintf(stderr, "%s: pollen - alpha %f out of range\n", progname, alpha);
|
|
12 exit(1);
|
|
13 }
|
|
14
|
|
15 if (beta < -M_PI || beta >= M_PI) {
|
|
16 fprintf(stderr, "%s: pollen - beta %f out of range\n", progname, beta);
|
|
17 exit(1);
|
|
18 }
|
|
19
|
|
20 if (verbose > 7)
|
|
21 fprintf(stderr, "%s: pollen - alpha %f, beta %f\n", progname, alpha, beta);
|
|
22
|
|
23 dwt_pollen_filter(alpha, beta);
|
|
24 }
|
|
25 }
|
|
26 #endif
|
|
27
|