PHP Trait MathPHP\Statistics\Regression\Models\PowerModel

Afficher le fichier Open project: markrogoyski/math-php

Protected Properties

Свойство Type Description
$A b parameter index
$B

Méthodes publiques

Méthode 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 méthode

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
Résultat number y evaluated

getModelEquation() public static méthode

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

getModelParameters() public static méthode

Get regression parameters (a and b)
public static getModelParameters ( $params ) : array
Résultat 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