1 /*
2     cmath.h:
3 
4     Copyright (C) 1994 Paris Smaragdis, John ffitch
5 
6     This file is part of Csound.
7 
8     The Csound Library is free software; you can redistribute it
9     and/or modify it under the terms of the GNU Lesser General Public
10     License as published by the Free Software Foundation; either
11     version 2.1 of the License, or (at your option) any later version.
12 
13     Csound is distributed in the hope that it will be useful,
14     but WITHOUT ANY WARRANTY; without even the implied warranty of
15     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16     GNU Lesser General Public License for more details.
17 
18     You should have received a copy of the GNU Lesser General Public
19     License along with Csound; if not, write to the Free Software
20     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21     02110-1301 USA
22 */
23 
24 double besseli(double);
25 
26 /* returns 0 on success, -1 if there are insufficient arguments, */
27 /* and -2 in the case of an unknown distribution */
28 int32_t gen21_rand(FGDATA *ff, FUNC *ftp);
29 
30 typedef struct  {
31         OPDS    h;
32         MYFLT   *sr, *in, *powerOf, *norm;
33  } POW;
34 
35 typedef struct  {
36         OPDS    h;
37         MYFLT   *out, *arg1, *arg2, *arg3;
38 } PRAND;
39 
40 typedef struct  {
41         OPDS    h;
42         MYFLT   *ar, *arg1, *xamp, *xcps;
43         MYFLT   *iseed;
44         MYFLT   dfdmax, num1, num2;
45         int32_t   phs;
46         int32_t     ampcod, cpscod;
47 } PRANDI;
48 
49 typedef struct {
50         OPDS   h;
51         MYFLT  *ans;
52 } GETSEED;
53 
54 typedef struct gauss{
55   OPDS h;
56   MYFLT *a, *mu, *sigma;
57   MYFLT z;
58   int flag;
59 } GAUSS;
60