-
FlexPro
- At a Glance
- Features & Options
- Applications
- All Advantages
- What’s New in FlexPro 2021
- Try FlexPro For Free
- FlexPro View OEM Freeware
- Buying Guide
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
- Products
- News
- Support
- Company
- Contact
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
Home > Community > General > Regression line > Reply To: Regression line
You can either use the Approximation Analysis Object or the Regression Analysis Object.
With the Approximation analysis object you can approximate a given model to your data based on the least square error method. Use the Intial function Constant and X.
With the Regression analysis object you can calculate the Linear Regression. You can choose whether you would like the result to be the regression function, i.e. a formula in which the calculated coefficients were inserted, or the regression coefficients as data series with three values. The third value in the data series is the goodness-of-fit measure.
Both analysis objects use the FPScript function Approximation.
Example:
Dim _c = Approximation(Signal, APPROX_C + APPROX_X)
Signal(_c[0] + _c[1] * (Signal.X), Signal.X)