LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Version

I think this would be roughly equivalent code for this part (input data extracted from graph defaults):

 

altenbach_0-1706824027062.png

 

 

(no guarantees, because I cannot run the original because of missing subVIs).

 

And as has been already said, the linear fit and linear evaluation would be trivial to implement from "Base" primitives.

 

0 Kudos
Message 11 of 12
(488 Views)

@altenbach wrote:

And as has been already said, the linear fit and linear evaluation would be trivial to implement from "Base" primitives.

 


One possibility:

 

altenbach_2-1706992769883.png

 

 

Note that you might want to implement some sanity checks on the inputs, such as verifying that [X] and [Y] have equal size. (other checks are less important, such as the presence of  at least two points and absence of NaN, +inf, -inf, etc. Violating any of these will just return NaN, which might be sufficient.)

 

0 Kudos
Message 12 of 12
(440 Views)