17 lines
318 B
PHP
17 lines
318 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Phpml\Preprocessing\Imputer\Strategy;
|
|
|
|
use Phpml\Math\Statistic\Mean;
|
|
use Phpml\Preprocessing\Imputer\Strategy;
|
|
|
|
class MeanStrategy implements Strategy
|
|
{
|
|
public function replaceValue(array $currentAxis): float
|
|
{
|
|
return Mean::arithmetic($currentAxis);
|
|
}
|
|
}
|