[Pkg-javascript-commits] [science.js] 75/87: mu -> mean (fixed)
bhuvan krishna
bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:12:05 UTC 2016
This is an automated email from the git hooks/post-receive script.
bhuvan-guest pushed a commit to branch master
in repository science.js.
commit 8d46552f9b52498ce66b9f330794868a9ef768fb
Author: Ziggy Jonsson <ziggy.jonsson.nyc at gmail.com>
Date: Mon Jan 7 17:32:13 2013 -0500
mu -> mean (fixed)
---
src/stats/distribution/gaussian.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/stats/distribution/gaussian.js b/src/stats/distribution/gaussian.js
index 4c07a38..7bb555b 100644
--- a/src/stats/distribution/gaussian.js
+++ b/src/stats/distribution/gaussian.js
@@ -22,12 +22,12 @@ science.stats.distribution.gaussian = function() {
}
gaussian.pdf = function(x) {
- x = (x - mu) / sigma;
+ x = (x - mean) / sigma;
return science_stats_distribution_gaussianConstant * Math.exp(-.5 * x * x) / sigma;
};
gaussian.cdf = function(x) {
- x = (x - mu) / sigma;
+ x = (x - mean) / sigma;
return .5 * (1 + science.stats.erf(x / Math.SQRT2));
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/science.js.git
More information about the Pkg-javascript-commits
mailing list