mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
43 lines
884 B
PHP
43 lines
884 B
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.2
|
|
*
|
|
* @package phpOMS\Math\Statistic\Forecast\Regression
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link http://website.orange-management.de
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\Math\Statistic\Forecast\Regression;
|
|
|
|
/**
|
|
* Regression class.
|
|
*
|
|
* @package phpOMS\Math\Statistic\Forecast\Regression
|
|
* @license OMS License 1.0
|
|
* @link http://website.orange-management.de
|
|
* @since 1.0.0
|
|
*/
|
|
class LevelLevelRegression extends RegressionAbstract
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function getSlope(float $b1, float $y, float $x) : float
|
|
{
|
|
return $b1;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function getElasticity(float $b1, float $y, float $x): float
|
|
{
|
|
return $b1 * $y / $x;
|
|
}
|
|
}
|