02-01-2024 03:42 PM - edited 02-01-2024 04:34 PM
I think this would be roughly equivalent code for this part (input data extracted from graph defaults):
(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.
02-03-2024 02:40 PM
@altenbach wrote:
And as has been already said, the linear fit and linear evaluation would be trivial to implement from "Base" primitives.
One possibility:
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.)