Phil Steitz created MATH-1287: --------------------------------- Summary: EnumeratedDistributions should provide constructors taking input datasets Key: MATH-1287 URL: https://issues.apache.org/jira/browse/MATH-1287 Project: Commons Math Issue Type: Improvement Affects Versions: 3.5 Reporter: Phil Steitz Priority: Minor Fix For: 4.0, 3.6
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, {code}EnumeratedIntegerDistribution([0,1,1,2]){code} would be the same as {code}EnumeratedIntegerDistribution([0,1,2], [.25, .5, .25]){code}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)