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

Description API ZipfDistribution

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0, 3.6
    • None
    • All

    Description

      The description of the constructors for the ZipfDistribution class specifies an argument of type doule, called exponent. The documentation refers to a MathWorld page where the distribution is defined. However, here the exponent p, is the exponent of the cdf, not of the pdf (which is then p + 1). After running some test I found that the exponent in the constructor is the one for the pdf. This can create confusion among users. Therefore I recommend specifying in the documentation which exponent is meant.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gjyvarro Pim van der Hoorn
            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