ericbarnhill commented on a change in pull request #4: A small Mode function
URL: https://github.com/apache/commons-statistics/pull/4#discussion_r281865803
 
 

 ##########
 File path: 
commons-statistics-distribution/src/main/java/org/apache/commons/statistics/distribution/CauchyDistribution.java
 ##########
 @@ -65,7 +62,7 @@ public double getMedian() {
      * @return the mode for this distribution.
      */
     public double getMode() {
-        return mode;
+        return getMedian();
 
 Review comment:
   Looks good. You may also want to add a statement in the doc that the mode is 
the same as the median for this distribution.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to