PHP Class MathPHP\Statistics\Regression\ParametricRegression

Inheritance: extends Regression
Show file Open project: markrogoyski/math-php Class Usage Examples

Protected Properties

Property Type Description
$parameters An array of model parameters

Public Methods

Method 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 method

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

__toString() public method

Return the model as a string
public __toString ( ) : string
return string

getEquation() public method

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

getParameters() public method

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

Property Details

$parameters protected property

An array of model parameters
protected $parameters