phpOMS/Math/Statistic/Forecast/Regression/LevelLevelRegression.php
Scrutinizer Auto-Fixer a364117f80 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2017-11-05 21:40:19 +00:00

44 lines
877 B
PHP

<?php
/**
* Orange Management
*
* PHP Version 7.1
*
* @category TBD
* @package TBD
* @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.
*
* @category Framework
* @package phpOMS\DataStorage\Database
* @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;
}
}