Skip to content

Commit f7287ee

Browse files
committed
Fix a typo of "threshold"
1 parent f98773a commit f7287ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mllib/src/main/scala/org/apache/spark/mllib/stat/correlation/PearsonCorrelation.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private[stat] object PearsonCorrelation extends Correlation with Logging {
101101
Matrices.fromBreeze(cov)
102102
}
103103

104-
private def closeToZero(value: Double, threshhold: Double = 1e-12): Boolean = {
104+
private def closeToZero(value: Double, threshold: Double = 1e-12): Boolean = {
105105
math.abs(value) <= threshhold
106106
}
107107
}

0 commit comments

Comments
 (0)