aboutsummaryrefslogtreecommitdiff
path: root/mllib
diff options
context:
space:
mode:
authorXusen Yin <yinxusen@gmail.com>2015-04-29 10:13:48 -0700
committerXiangrui Meng <meng@databricks.com>2015-04-29 10:13:48 -0700
commitc0c0ba6d2a11febc8e874c437c4f676dd36ae059 (patch)
tree15b17679fe1a3e85529980b3417a7907efd7d77a /mllib
parent81ea42bf39db7366e266bc1e5ce7e459fa2ef409 (diff)
downloadspark-c0c0ba6d2a11febc8e874c437c4f676dd36ae059.tar.gz
spark-c0c0ba6d2a11febc8e874c437c4f676dd36ae059.tar.bz2
spark-c0c0ba6d2a11febc8e874c437c4f676dd36ae059.zip
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"
Diffstat (limited to 'mllib')
-rw-r--r--mllib/src/main/scala/org/apache/spark/mllib/stat/correlation/PearsonCorrelation.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/mllib/src/main/scala/org/apache/spark/mllib/stat/correlation/PearsonCorrelation.scala b/mllib/src/main/scala/org/apache/spark/mllib/stat/correlation/PearsonCorrelation.scala
index 23b291eee0..8a821d1b23 100644
--- a/mllib/src/main/scala/org/apache/spark/mllib/stat/correlation/PearsonCorrelation.scala
+++ b/mllib/src/main/scala/org/apache/spark/mllib/stat/correlation/PearsonCorrelation.scala
@@ -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
}
}