mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 14:38:39 +00:00
fix dot to mult
This commit is contained in:
parent
5f8004da25
commit
45bab0c041
|
|
@ -58,7 +58,7 @@ final class KernelsND
|
||||||
$cov = $bandwithMatrix->mult($identityMatrix);
|
$cov = $bandwithMatrix->mult($identityMatrix);
|
||||||
|
|
||||||
/** @phpstan-ignore-next-line */
|
/** @phpstan-ignore-next-line */
|
||||||
$exponent = $distnaceMatrix->dot($cov->inverse())->mult($distnaceMatrix)->sum(1)->mult(-0.5);
|
$exponent = $distnaceMatrix->mult($cov->inverse())->mult($distnaceMatrix)->sum(1)->mult(-0.5);
|
||||||
|
|
||||||
return $exponent->exp()->mult((1 / \pow(2 * \M_PI, $dim / 2)) * \pow($cov->det(), 0.5))->matrix;
|
return $exponent->exp()->mult((1 / \pow(2 * \M_PI, $dim / 2)) * \pow($cov->det(), 0.5))->matrix;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user