Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Nit fix

  • Loading branch information...
commit 283d87cad7de99808f819d8b85114426b0cac7b3 1 parent 0f6ad5a
@ashenfad ashenfad authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/clj/histogram/core.clj
View
7 src/clj/histogram/core.clj
@@ -153,14 +153,15 @@
(seq (.uniform hist max-bins)))
(defn median
- "Returns an approximate median."
+ "Returns an approximate median for the points inserted into the
+ histogram."
[^Histogram hist]
(first (uniform hist 2)))
(defn mean
[^Histogram hist]
- "Returns the mean."
- (when (not (empty? (.getBins hist)))
+ "Returns the mean for the points inserted into the histogram."
+ (when-not (empty? (.getBins hist))
(.getMean ^Bin (reduce (fn [^Bin b1 ^Bin b2] (.combine b1 b2))
(.getBins hist)))))
Please sign in to comment.
Something went wrong with that request. Please try again.