Add docblock

This commit is contained in:
Dennis Eichhorn 2017-10-30 11:53:35 +01:00
parent 877e56c5cd
commit a65f388603
5 changed files with 30 additions and 0 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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
{ {
} }