EERegression icon indicating copy to clipboard operation
EERegression copied to clipboard

General purpose linear and polynomial regression library for Swift.

EERegression

General purpose multivariate linear and quadratic Regression library for Swift.

regression gif

Usage

// X is one or multi column matrix, Y is a vector (o column matrix)
//degree is polynomial order. (1 for linear regression)
let regression = Regression(X: X, Y: Y, degree: degree)

let prediction = regression.predict(x)

Test

EERegression.swift includes regression coefficients and prediction tests.

For any idea or contribution, please DT me. @erkekin

Thanks

Scott for swix.