Hi Community,

I am trying to implement the below logic in PI AF and i tried to use "LinRegr" function to implement this logic but i couldn't achieve correctly.

y= Value of metal loss number, corresponding to x time base values.

x= the time base values

m= the number of points used for the regression (864=3d*24h*12 reads per hour)

Can someone please share your ideas to achieve this.

Thanks in advance.

Ashwin

Ashwin,

The only way I've been able to implement similar requirements (filtered linear regression) was using custom code calling functions from the Math.Net Numerics library. Had to implement my own filtering before calling the linear regression function. The current LinRegr function in AF Analytics won't handle this.