02-04-2026 12:53 PM
@altenbach wrote:
In this case only the broad peak would really be interesting.
Here's how you could get the centroid of the broad peak
02-05-2026 09:44 AM
@altenbach wrote:
@altenbach wrote:
In this case only the broad peak would really be interesting.
Here's how you could get the centroid of the broad peak
I think this is the first time I seen altenbach make a XY graph without using complex numbers. Has his account been hijacked? 🙂
02-05-2026 09:59 AM - edited 02-05-2026 12:41 PM
@mcduff wrote:
I think this is the first time I seen altenbach make a XY graph without using complex numbers. Has his account been hijacked? 🙂
The very specific reason here is that "threshold array" for unevenly spaced x requires an array of points, which I re-use for the graph. 😮
( RANT: there are plenty of functions that require xy data as inputs (all fitting VIs, threshold array, interpolate array, etc. and I would love for all of them to accept complex arrays as input alternatives. Maybe I'll eventually write an idea... As a simple example, an improved linear fit tool would only have exactly one 1D array input. If a DBL is wired, x would be taken as array index (see also this old idea here! ) while wiring a complex 1D array would assume xy data and output a complex array as best fit. Having separate arrays for x and y just clutters the diagram)
02-05-2026 11:01 AM
Thank you to everyone for responding to me and supplying me with a centroid example
Using these examples I do get the same centroid value from the broad peak that I would with Lux Py for example
02-05-2026 01:14 PM
@LED47 wrote:
Thank you to everyone for responding to me and supplying me with a centroid example
Using these examples I do get the same centroid value from the broad peak that I would with Lux Py for example
If your product is a success, be sure to include CAB with some of the proceeds.