From 231173dbf24078cf4161e38f43bb163fb196c572 Mon Sep 17 00:00:00 2001 From: Jens True Date: Tue, 27 Feb 2024 08:08:48 +0000 Subject: [PATCH] All test parsing --- composer.lock | 24 ++++++++++++------------ src/Numerics/GaussianDistribution.php | 7 +++++-- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/composer.lock b/composer.lock index 05c3958..905b557 100644 --- a/composer.lock +++ b/composer.lock @@ -2961,16 +2961,16 @@ }, { "name": "symfony/console", - "version": "v7.0.3", + "version": "v7.0.4", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "c5010d50f1ee4b25cfa0201d9915cf1b14071456" + "reference": "6b099f3306f7c9c2d2786ed736d0026b2903205f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/c5010d50f1ee4b25cfa0201d9915cf1b14071456", - "reference": "c5010d50f1ee4b25cfa0201d9915cf1b14071456", + "url": "https://api.github.com/repos/symfony/console/zipball/6b099f3306f7c9c2d2786ed736d0026b2903205f", + "reference": "6b099f3306f7c9c2d2786ed736d0026b2903205f", "shasum": "" }, "require": { @@ -3034,7 +3034,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v7.0.3" + "source": "https://github.com/symfony/console/tree/v7.0.4" }, "funding": [ { @@ -3050,7 +3050,7 @@ "type": "tidelift" } ], - "time": "2024-01-23T15:02:46+00:00" + "time": "2024-02-22T20:27:20+00:00" }, { "name": "symfony/filesystem", @@ -3517,16 +3517,16 @@ }, { "name": "symfony/string", - "version": "v7.0.3", + "version": "v7.0.4", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "524aac4a280b90a4420d8d6a040718d0586505ac" + "reference": "f5832521b998b0bec40bee688ad5de98d4cf111b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/524aac4a280b90a4420d8d6a040718d0586505ac", - "reference": "524aac4a280b90a4420d8d6a040718d0586505ac", + "url": "https://api.github.com/repos/symfony/string/zipball/f5832521b998b0bec40bee688ad5de98d4cf111b", + "reference": "f5832521b998b0bec40bee688ad5de98d4cf111b", "shasum": "" }, "require": { @@ -3583,7 +3583,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v7.0.3" + "source": "https://github.com/symfony/string/tree/v7.0.4" }, "funding": [ { @@ -3599,7 +3599,7 @@ "type": "tidelift" } ], - "time": "2024-01-29T15:41:16+00:00" + "time": "2024-02-01T13:17:36+00:00" }, { "name": "theseer/tokenizer", diff --git a/src/Numerics/GaussianDistribution.php b/src/Numerics/GaussianDistribution.php index 3413db2..da10d22 100644 --- a/src/Numerics/GaussianDistribution.php +++ b/src/Numerics/GaussianDistribution.php @@ -16,6 +16,7 @@ class GaussianDistribution implements \Stringable * Square Root 2π. * Precalculated constant for performance reasons * sqrt(2*pi) + * * @link https://www.wolframalpha.com/input?i=sqrt%282*pi%29 Source of value */ private const M_SQRT_2_PI = 2.5066282746310005024157652848110452530069867406099383166299235763; @@ -24,6 +25,7 @@ class GaussianDistribution implements \Stringable * Log of Square Root 2π. * Precalculated constant for performance reasons * log(sqrt(2*pi)) + * * @link https://www.wolframalpha.com/input?i=log%28sqrt%282*pi%29%29 Source of value */ private const M_LOG_SQRT_2_PI = 0.9189385332046727417803297364056176398613974736377834128171515404; @@ -76,8 +78,9 @@ class GaussianDistribution implements \Stringable } /** - * Great derivation of this is at - * @link http://www.astro.psu.edu/~mce/A451_2/A451/downloads/notes0.pdf + * Great derivation of this is at + * + * @link http://www.astro.psu.edu/~mce/A451_2/A451/downloads/notes0.pdf */ public function getNormalizationConstant(): float {