|
Boost-Commit : |
From: pbristow_at_[hidden]
Date: 2007-08-25 05:02:13
Author: pbristow
Date: 2007-08-25 05:02:13 EDT (Sat, 25 Aug 2007)
New Revision: 38925
URL: http://svn.boost.org/trac/boost/changeset/38925
Log:
added synonyms location & scale for mean & sd
Text files modified:
sandbox/math_toolkit/boost/math/distributions/normal.hpp | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
Modified: sandbox/math_toolkit/boost/math/distributions/normal.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/distributions/normal.hpp (original)
+++ sandbox/math_toolkit/boost/math/distributions/normal.hpp 2007-08-25 05:02:13 EDT (Sat, 25 Aug 2007)
@@ -42,6 +42,17 @@
{ // scale
return m_sd;
}
+ // Synonyms, provided to allow generic use of find_location and find_scale.
+ RealType location()const
+ { // location
+ return m_mean;
+ }
+
+ RealType scale()const
+ { // scale
+ return m_sd;
+ }
+
private:
//
// Data members:
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk