TS++ library: time series library

◆ dugauss()

Tdseries ts::rnd::dugauss ( const int &  n)

return gaussian uniform noise (standard dev=1, zero mean)

Definition at line 72 of file random.cc.

References ts::rnd::helper::GSLrng::ugaussian().

Referenced by main(), and ts::filter::GaussianNoise::operator()().

73  {
74  static helper::GSLrng rng(gsl_rng_default);
75  Tdseries retval(n);
76  for (int i=retval.f(); i<=retval.l(); ++i)
77  { retval(i)=rng.ugaussian(); }
78  return (retval);
79  } // Tdseries dugauss
aff::Series< double > Tdseries
Definition: random.h:50
Here is the call graph for this function:
Here is the caller graph for this function: