Repository: spark Updated Branches: refs/heads/master 81ea42bf3 -> c0c0ba6d2
Fix a typo of "threshold" mengxr Author: Xusen Yin <[email protected]> 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" Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/c0c0ba6d Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/c0c0ba6d Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/c0c0ba6d Branch: refs/heads/master Commit: c0c0ba6d2a11febc8e874c437c4f676dd36ae059 Parents: 81ea42b Author: Xusen Yin <[email protected]> Authored: Wed Apr 29 10:13:48 2015 -0700 Committer: Xiangrui Meng <[email protected]> Committed: Wed Apr 29 10:13:48 2015 -0700 ---------------------------------------------------------------------- .../apache/spark/mllib/stat/correlation/PearsonCorrelation.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/c0c0ba6d/mllib/src/main/scala/org/apache/spark/mllib/stat/correlation/PearsonCorrelation.scala ---------------------------------------------------------------------- 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 23b291e..8a821d1 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 } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
