# HG changeset patch
# User Dave Wiltshire
# Date 1384728073 -39600
# Node ID 2b4a9f33eb0f4a4dace461e4d0fbf4f8cb2c0264
# Parent 7760ab3107037670cfdc1cf18a24fd0e1a6edeee
Fixed error in standard log density
The standard distribution had an error where the log density was not the same as the log density created 'normDistr 0.0 1.0'. The standard distribution constructor was wrong.
diff --git a/Statistics/Distribution/Normal.hs b/Statistics/Distribution/Normal.hs
--- a/Statistics/Distribution/Normal.hs
+++ b/Statistics/Distribution/Normal.hs
@@ -76,7 +76,7 @@
standard :: NormalDistribution
standard = ND { mean = 0.0
, stdDev = 1.0
- , ndPdfDenom = m_sqrt_2_pi
+ , ndPdfDenom = log m_sqrt_2_pi
, ndCdfDenom = m_sqrt_2
}