Jump to content

Recommended Posts

Posted

Hello,

I am looking for some help to build a linear regression formula (https://en.wikipedia.org/wiki/Simple_linear_regression).

The scope is to write a function block with a variable "n". The measured "y" will be a real value. The "n" can be 5, 10, 20 or 40. In Excel I have the formula working and made function block without a variable n. I just sum the totals and do the calculations

Looking for a way to easy sum the results for different "n". Not much experience with structured text. Please advice.

regression formula.jpg

200727 - Regression_Test_V1.0.cxp

200727 - Regression_Test_V1.0.opt

200727 - Regression_Test_V1.0.bak

200727 - regression - v1.0.xlsx


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...