mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 01:38:41 +00:00
fix tests
This commit is contained in:
parent
2cbbe69bac
commit
7a086fea93
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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],
|
||||
])
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user