PHP Class MathPHP\Statistics\Regression\ParametricRegression

Inheritance: extends Regression
Afficher le fichier Open project: markrogoyski/math-php Class Usage Examples

Protected Properties

Свойство Type Description
$parameters An array of model parameters

Méthodes publiques

Méthode Description
__construct ( array $points ) Have the parent separate the points into xs and ys.
__toString ( ) : string Return the model as a string
getEquation ( ) : string Get the equation Uses the model's getModelEquation method.
getParameters ( ) : array Get the parameters Uses the model's getModelParameters method.

Method Details

__construct() public méthode

Calculate the regression parameters
public __construct ( array $points )
$points array

__toString() public méthode

Return the model as a string
public __toString ( ) : string
Résultat string

getEquation() public méthode

Get the equation Uses the model's getModelEquation method.
public getEquation ( ) : string
Résultat string

getParameters() public méthode

Get the parameters Uses the model's getModelParameters method.
public getParameters ( ) : array
Résultat array

Property Details

$parameters protected_oe property

An array of model parameters
protected $parameters