mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 14:38:39 +00:00
Add docblock
This commit is contained in:
parent
877e56c5cd
commit
a65f388603
|
|
@ -26,11 +26,17 @@ namespace phpOMS\Math\Statistic\Forecast\Regression;
|
||||||
*/
|
*/
|
||||||
class LevelLevelRegression extends RegressionAbstract
|
class LevelLevelRegression extends RegressionAbstract
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public static function getSlope(float $b1, float $y, float $x) : float
|
public static function getSlope(float $b1, float $y, float $x) : float
|
||||||
{
|
{
|
||||||
return $b1;
|
return $b1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public static function getElasticity(float $b1, float $y, float $x): float
|
public static function getElasticity(float $b1, float $y, float $x): float
|
||||||
{
|
{
|
||||||
return $b1 * $y / $x;
|
return $b1 * $y / $x;
|
||||||
|
|
|
||||||
|
|
@ -44,11 +44,17 @@ class LevelLogRegression extends RegressionAbstract
|
||||||
return parent::getRegression($x, $y);
|
return parent::getRegression($x, $y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public static function getSlope(float $b1, float $y, float $x) : float
|
public static function getSlope(float $b1, float $y, float $x) : float
|
||||||
{
|
{
|
||||||
return $b1 / $x;
|
return $b1 / $x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public static function getElasticity(float $b1, float $y, float $x): float
|
public static function getElasticity(float $b1, float $y, float $x): float
|
||||||
{
|
{
|
||||||
return $b1 / $x;
|
return $b1 / $x;
|
||||||
|
|
|
||||||
|
|
@ -44,11 +44,17 @@ class LogLevelRegression extends RegressionAbstract
|
||||||
return parent::getRegression($x, $y);
|
return parent::getRegression($x, $y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public static function getSlope(float $b1, float $y, float $x) : float
|
public static function getSlope(float $b1, float $y, float $x) : float
|
||||||
{
|
{
|
||||||
return $b1 * $y;
|
return $b1 * $y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public static function getElasticity(float $b1, float $y, float $x): float
|
public static function getElasticity(float $b1, float $y, float $x): float
|
||||||
{
|
{
|
||||||
return $b1 * $x;
|
return $b1 * $x;
|
||||||
|
|
|
||||||
|
|
@ -45,11 +45,17 @@ class LogLogRegression extends RegressionAbstract
|
||||||
return parent::getRegression($x, $y);
|
return parent::getRegression($x, $y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public static function getSlope(float $b1, float $y, float $x) : float
|
public static function getSlope(float $b1, float $y, float $x) : float
|
||||||
{
|
{
|
||||||
return $b1 * $y / $x;
|
return $b1 * $y / $x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public static function getElasticity(float $b1, float $y, float $x): float
|
public static function getElasticity(float $b1, float $y, float $x): float
|
||||||
{
|
{
|
||||||
return $b1;
|
return $b1;
|
||||||
|
|
|
||||||
|
|
@ -33,10 +33,16 @@ class MultipleLinearRegression
|
||||||
return $XT->mult($X)->inverse()->mult($XT)->mult($Y)->getMatrix();
|
return $XT->mult($X)->inverse()->mult($XT)->mult($Y)->getMatrix();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public static function getVariance() : float
|
public static function getVariance() : float
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* {@inheritdoc}
|
||||||
|
*/
|
||||||
public static function getPredictionInterval() : array
|
public static function getPredictionInterval() : array
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user