1. Bryan O'Sullivan
  2. statistics

Commits

Dave Wiltshire  committed 2b4a9f3

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.

  • Participants
  • Parent commits 7760ab3
  • Branches default

Comments (0)

Files changed (1)

File Statistics/Distribution/Normal.hs

View file
  • Ignore whitespace
 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
               }