php-ml/src/Phpml/Preprocessing/Imputer/Strategy/MeanStrategy.php

17 lines
319 B
PHP
Raw Normal View History

<?php
2016-11-20 21:53:17 +00:00
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);
}
}