PHP 클래스 MathPHP\Statistics\Regression\TheilSen

A method for robustly fitting a line to a set of points (simple linear regression) that chooses the median slope among all lines through pairs of two-dimensional sample points. https://en.wikipedia.org/wiki/Theil%E2%80%93Sen_estimator
상속: extends ParametricRegression, use trait MathPHP\Statistics\Regression\Models\LinearModel
파일 보기 프로젝트 열기: markrogoyski/math-php

공개 메소드들

메소드 설명
calculate ( ) Calculate the regression parameters using the Theil-Sen method

메소드 상세

calculate() 공개 메소드

Procedure: Calculate the slopes of all pairs of points and select the median value Calculate the intercept using the slope, and the medians of the X and Y values. b = Ymedian - (m * Xmedian)
public calculate ( )