fix tests

This commit is contained in:
Dennis Eichhorn 2023-10-22 14:33:57 +00:00
parent 2cbbe69bac
commit 7a086fea93
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ final class BetaTest extends \PHPUnit\Framework\TestCase
{
self::assertEqualsWithDelta(1.0, Beta::beta(0, 3), 0.001);
self::assertEqualsWithDelta(4.4776093, Beta::beta(1.5, 0.2), 0.001);
self::assertEqualsWithDelta(0.045648, Beta::beta(2, 4), 0.001);
self::assertEqualsWithDelta(0.05, Beta::beta(2, 4), 0.001);
}
/**

View File

@ -527,12 +527,12 @@ final class MatrixTest extends \PHPUnit\Framework\TestCase
public function testDotVectorMatrix() : void
{
$v = Vector::fromArray([3, 4]);
$v = Vector::fromArray([3, 4])->transpose();
self::assertEquals(
[11, 39, 53],
$v->dot(
MAtrix::fromArray([
Matrix::fromArray([
[1, 5, 7],
[2, 6, 8],
])