You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2020/11/20 15:25:05 UTC

[commons-math] branch master updated: Update EnumeratedDistribution.java (#166)

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git


The following commit(s) were added to refs/heads/master by this push:
     new 649b134  Update EnumeratedDistribution.java (#166)
649b134 is described below

commit 649b134f1746a9d606c09133d87df1e33698b728
Author: Dmitry Dontsov <d....@gmail.com>
AuthorDate: Fri Nov 20 18:24:35 2020 +0300

    Update EnumeratedDistribution.java (#166)
    
    Fix typo in description
---
 .../org/apache/commons/math4/distribution/EnumeratedDistribution.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/math4/distribution/EnumeratedDistribution.java b/src/main/java/org/apache/commons/math4/distribution/EnumeratedDistribution.java
index 27f53bd..5ecbdf4 100644
--- a/src/main/java/org/apache/commons/math4/distribution/EnumeratedDistribution.java
+++ b/src/main/java/org/apache/commons/math4/distribution/EnumeratedDistribution.java
@@ -45,7 +45,7 @@ import org.apache.commons.math4.util.Pair;
  * contain null values.  The pmf created by the constructor will combine probabilities of equal values and
  * will treat null values as equal.  For example, if the list of pairs &lt;"dog", 0.2&gt;, &lt;null, 0.1&gt;,
  * &lt;"pig", 0.2&gt;, &lt;"dog", 0.1&gt;, &lt;null, 0.4&gt; is provided to the constructor, the resulting
- * pmf will assign mass of 0.5 to null, 0.3 to "dog" and 0.2 to null.</p>
+ * pmf will assign mass of 0.5 to null, 0.3 to "dog" and 0.2 to pig.</p>
  *
  * @param <T> type of the elements in the sample space.
  * @since 3.2