phpOMS/Math/Statistic/Forecast/Regression/LevelLevelRegression.php
Dennis Eichhorn 0a8a5c63c5
Some checks failed
Compress images / calibreapp/image-actions (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
fix permissions
2025-04-02 14:15:07 +00:00

53 lines
967 B
PHP

<?php
/**
* Jingga
*
* PHP Version 8.2
*
* @package phpOMS\Math\Statistic\Forecast\Regression
* @copyright Dennis Eichhorn
* @license OMS License 2.2
* @version 1.0.0
* @link https://jingga.app
*/
declare(strict_types=1);
namespace phpOMS\Math\Statistic\Forecast\Regression;
/**
* Regression class.
*
* @package phpOMS\Math\Statistic\Forecast\Regression
* @license OMS License 2.2
* @link https://jingga.app
* @since 1.0.0
*/
final class LevelLevelRegression extends RegressionAbstract
{
/**
* Constructor.
*
* @since 1.0.0
* @codeCoverageIgnore
*/
private function __construct()
{
}
/**
* {@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 * $x / $y;
}
}