Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1373

In LogNormalDistribution.java, it appears shape & scale are reversed/mis-labelled.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 3.6.1
    • 4.0
    • None

    Description

      When I compute the logshape and log scale based on the formulas on wikipedia's lognormal distribution page that use empirical mean and variance, I found that the getNumericalMean() method was not returning the empirical mean.

      However, upon just trying to reverse the shape and scale parameters in the constructor proved to fix the problem, and the object then returns the correct empirical mean.

      Attachments

        1. MATH-1373.patch
          5 kB
          Karl D. Gierach

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kgierach Karl D. Gierach
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified