Skip to content

Commit c0c0ba6

Browse files
yinxusenmengxr
authored andcommitted
Fix a typo of "threshold"
mengxr Author: Xusen Yin <[email protected]> Closes apache#5769 from yinxusen/patch-1 and squashes the following commits: 43235f4 [Xusen Yin] Update PearsonCorrelation.scala f7287ee [Xusen Yin] Fix a typo of "threshold"
1 parent 81ea42b commit c0c0ba6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
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 = {
105-
math.abs(value) <= threshhold
104+
private def closeToZero(value: Double, threshold: Double = 1e-12): Boolean = {
105+
math.abs(value) <= threshold
106106
}
107107
}

0 commit comments

Comments
 (0)