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

EnumeratedDistributions should provide constructors taking input datasets

    XMLWordPrintableJSON

Details

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

    Description

      It should be possible to create an enumerated real or integer distribution from an input array of values, with the frequency of occurrence of a value determining its probability. For example,

      EnumeratedIntegerDistribution([0,1,1,2])

      would be the same as

      EnumeratedIntegerDistribution([0,1,2], [.25, .5, .25])

      .

      Attachments

        Activity

          People

            Unassigned Unassigned
            psteitz Phil Steitz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: