mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
autoformat
This commit is contained in:
parent
74c3c456b9
commit
016af92a05
|
|
@ -165,7 +165,7 @@ final class Metrics
|
||||||
$matrix = self::createCustomerPurchaseProbabilityMatrix($purchaseProbability);
|
$matrix = self::createCustomerPurchaseProbabilityMatrix($purchaseProbability);
|
||||||
$newMatrix = clone $matrix;
|
$newMatrix = clone $matrix;
|
||||||
|
|
||||||
for ($i = 0; $i < $period - 1 ; ++$i) {
|
for ($i = 0; $i < $period - 1; ++$i) {
|
||||||
$newMatrix = $newMatrix->mult($matrix);
|
$newMatrix = $newMatrix->mult($matrix);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ class CustomerValueTest extends \PHPUnit\Framework\TestCase
|
||||||
public function testMRR() : void
|
public function testMRR() : void
|
||||||
{
|
{
|
||||||
$revenues = [
|
$revenues = [
|
||||||
1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096
|
1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096,
|
||||||
];
|
];
|
||||||
|
|
||||||
self::assertEqualsWithDelta(77.53846, CustomerValue::getMRR($revenues, 13, 10, 1000), 0.01);
|
self::assertEqualsWithDelta(77.53846, CustomerValue::getMRR($revenues, 13, 10, 1000), 0.01);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user