Skip to content
Snippets Groups Projects
Commit c0c0ba6d authored by Xusen Yin's avatar Xusen Yin Committed by Xiangrui Meng
Browse files

Fix a typo of "threshold"

mengxr

Author: Xusen Yin <yinxusen@gmail.com>

Closes #5769 from yinxusen/patch-1 and squashes the following commits:

43235f4 [Xusen Yin] Update PearsonCorrelation.scala
f7287ee [Xusen Yin] Fix a typo of "threshold"
parent 81ea42bf
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ private[stat] object PearsonCorrelation extends Correlation with Logging {
Matrices.fromBreeze(cov)
}
private def closeToZero(value: Double, threshhold: Double = 1e-12): Boolean = {
math.abs(value) <= threshhold
private def closeToZero(value: Double, threshold: Double = 1e-12): Boolean = {
math.abs(value) <= threshold
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment