LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

linear fit vi?

The Linear fit.vi how does it work...?

 

could you explain me the algorithm?

 

my y  as temperature y= -50 to 1250 deg C and x as voltage x=-5 to 5 v . i want to calculate the slope and intercept. 

 

i know using linear fit.vi will get answer but i want to know about the algorithm...?  can you explain me?

 

Regards,
Balaji DP
0 Kudos
Message 1 of 3
(2,257 Views)

Hi Balaji,

 

1) in your picture you're using -10 to 10 as input range in contradiction to your written description...

2) There's a context help for that function - and it also explains the used/available algorithms!

3) When the explanations given in the help aren't helpful enough for you: Have you searched Wikipedia for explanations of used algorithms?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,248 Views)

Hello,

 

the Linear fit VI can use the iterative general Least Square method and the Levenberg-Marquardt method, depending on the method terminal.

Please see the help page of the Linear fit VI for detailed algorithm descriptions.

 

Daniel

Dániel Fülöp
Field Application Engineer (CLA, CTA)
National Instruments
0 Kudos
Message 3 of 3
(2,244 Views)