phpOMS/Math/Statistic/Forecast/Regression/LevelLevelRegression.php
Dennis Eichhorn cdd1434799 Forecasting implementations
Implementing more regressions, arima draft (not complete), some more
average and error functions.
2016-07-19 16:49:52 +02:00

43 lines
1.1 KiB
PHP

<?php
/**
* Orange Management
*
* PHP Version 7.0
*
* @category TBD
* @package TBD
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @copyright 2013 Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://orange-management.com
*/
namespace phpOMS\Math\Statistic\Forecast\Regression;
use phpOMS\Math\Statistic\Average;
use phpOMS\Math\Statistic\Forecast\ForecastIntervalMultiplier;
use phpOMS\Math\Statistic\MeasureOfDispersion;
/**
* Regression class.
*
* @category Framework
* @package phpOMS\DataStorage\Database
* @author OMS Development Team <dev@oms.com>
* @author Dennis Eichhorn <d.eichhorn@oms.com>
* @license OMS License 1.0
* @link http://orange-management.com
* @since 1.0.0
*/
class LevelLevelRegression extends RegressionAbstract
{
public static function getSlope(float $b1, float $y, float $x) : float {
return $b1;
}
public static function getElasticity(float $b1, float $y, float $x): float {
return $b1 * $y / $x;
}
}