PHP 트레잇 MathPHP\Statistics\Regression\Models\LinearModel

파일 보기 프로젝트 열기: markrogoyski/math-php

보호된 프로퍼티들

프로퍼티 타입 설명
$B
$M b parameter index

공개 메소드들

메소드 설명
evaluateModel ( number $x, array $params ) : number Evaluate the model given all the model parameters y = mx + b
getModelEquation ( array $params ) : string Get regression equation (y = mx + b)
getModelParameters ( array $params ) : array Get regression parameters (coefficients) m = slope b = y intercept

메소드 상세

evaluateModel() 공개 정적인 메소드

Evaluate the model given all the model parameters y = mx + b
public static evaluateModel ( number $x, array $params ) : number
$x number
$params array
리턴 number y evaluated

getModelEquation() 공개 정적인 메소드

Get regression equation (y = mx + b)
public static getModelEquation ( array $params ) : string
$params array
리턴 string

getModelParameters() 공개 정적인 메소드

Get regression parameters (coefficients) m = slope b = y intercept
public static getModelParameters ( array $params ) : array
$params array
리턴 array [ m => number, b => number ]

프로퍼티 상세

$B 보호되어 있는 정적으로 프로퍼티

protected static $B

$M 보호되어 있는 정적으로 프로퍼티

b parameter index
protected static $M