We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a97558 commit 21dd366Copy full SHA for 21dd366
core/src/main/scala/org/apache/spark/util/StatCounter.scala
@@ -29,8 +29,8 @@ class StatCounter(values: TraversableOnce[Double]) extends Serializable {
29
private var n: Long = 0 // Running count of our values
30
private var mu: Double = 0 // Running mean of our values
31
private var m2: Double = 0 // Running variance numerator (sum of (x - mean)^2)
32
- private var max_v: Double = Double(-Infinity) // Running max of our values
33
- private var min_v: Double = Double(Infinity) // Running min of our values
+ private var max_v: Double = Double.PositiveInfinity // Running max of our values
+ private var min_v: Double = Double.NegativeInfinity // Running min of our values
34
35
merge(values)
36
0 commit comments