Changeset 39242 for trunk/Ohana/src/opihi/cmd.data/gaussdeviate.c
- Timestamp:
- Dec 9, 2015, 3:42:26 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/gaussdeviate.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/gaussdeviate.c
r34088 r39242 17 17 ResetVector (vec, OPIHI_FLT, Npts); 18 18 19 gauss _init (2048);19 gaussdev_init (); 20 20 for (i = 0; i < Npts; i++) { 21 vec[0].elements.Flt[i] = rnd_gauss(mean, sigma);21 vec[0].elements.Flt[i] = gaussdev_rnd (mean, sigma); 22 22 } 23 23 return (TRUE); … … 28 28 29 29 } 30 31 double int_gauss (int i);32 30 33 31 int gaussintegral (int argc, char **argv) { … … 46 44 ResetVector (vec, OPIHI_FLT, Npts); 47 45 48 gauss _init (Npts);46 gaussdev_init (); 49 47 for (i = 0; i < Npts; i++) { 50 vec[0].elements.Flt[i] = int_gauss(i);48 vec[0].elements.Flt[i] = gaussian_int (i); 51 49 } 52 50 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
