diff options
author | Xusen Yin <yinxusen@gmail.com> | 2015-04-29 10:13:48 -0700 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2015-04-29 10:13:48 -0700 |
commit | c0c0ba6d2a11febc8e874c437c4f676dd36ae059 (patch) | |
tree | 15b17679fe1a3e85529980b3417a7907efd7d77a /mllib/src | |
parent | 81ea42bf39db7366e266bc1e5ce7e459fa2ef409 (diff) | |
download | spark-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/src')
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/mllib/stat/correlation/PearsonCorrelation.scala | 4 |
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 } } |