template<typename type>
type FX::Maths::normaldist ( type  x,
type  stddevs 
) throw () [inline]

Transform a value according to the normal distribution. Returns stddevs from mean.

Definition at line 1783 of file FXMaths.h.

References PI, and sqrt().

01784     {
01785         type u=x/fabs(stddevs);
01786         return (1/(sqrt(2*(type) PI)*fabs(stddevs)))*exp(-u*u/2);
01787     }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:38:01 2009 for TnFOX by doxygen v1.4.7