PHP Trait MathPHP\Statistics\Regression\Models\PowerModel

Datei anzeigen Open project: markrogoyski/math-php

Protected Properties

Property Type Description
$A b parameter index
$B

Public Methods

Method Description
evaluateModel ( number $x, array $params ) : number Evaluate the power curve equation from power law regression parameters for a value of x y = axᵇ
getModelEquation ( $params ) : string Get regression equation (y = axᵇ) in format y = ax^b
getModelParameters ( $params ) : array Get regression parameters (a and b)

Method Details

evaluateModel() public static method

Evaluate the power curve equation from power law regression parameters for a value of x y = axᵇ
public static evaluateModel ( number $x, array $params ) : number
$x number
$params array
return number y evaluated

getModelEquation() public static method

Get regression equation (y = axᵇ) in format y = ax^b
public static getModelEquation ( $params ) : string
return string

getModelParameters() public static method

Get regression parameters (a and b)
public static getModelParameters ( $params ) : array
return array [ a => number, b => number ]

Property Details

$A protected_oe static_oe property

b parameter index
protected static $A

$B protected_oe static_oe property

protected static $B