C# 클래스 GSF.NumericalAnalysis.CurveFit

Linear regression algorithm.
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 메소드들

메소드 설명
Compute ( int polynomialOrder, IEnumerable values ) : double[]

Computes linear regression over given values.

LeastSquares ( double zValues, double xValues, double yValues, double &a, double &b, double &c ) : void

Uses least squares linear regression to estimate the coefficients a, b, and c from the given (x,y,z) data points for the equation z = a + bx + cy.

비공개 메소드들

메소드 설명
Compute ( int polynomialOrder, IList xValues, IList yValues ) : double[]

메소드 상세

Compute() 공개 정적인 메소드

Computes linear regression over given values.
public static Compute ( int polynomialOrder, IEnumerable values ) : double[]
polynomialOrder int An for the polynomial order.
values IEnumerable A list of values.
리턴 double[]

LeastSquares() 공개 정적인 메소드

Uses least squares linear regression to estimate the coefficients a, b, and c from the given (x,y,z) data points for the equation z = a + bx + cy.
public static LeastSquares ( double zValues, double xValues, double yValues, double &a, double &b, double &c ) : void
zValues double z-value array
xValues double x-value array
yValues double y-value array
a double the out a coefficient
b double the out b coefficient
c double the out c coefficient
리턴 void