From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to find inflection points in an array consisting of several lines with different slopes

Please see the following graph. These points is plotted from an array(1D) vs. index. It consists of several strictly straight lines with different slopes. I  wish to find the indexes of those inflection points (red arrows indicated).  Is there any function or method?

pieces.PNG

0 Kudos
Message 1 of 5
(4,346 Views)

Hi weitong,

 

calculate the slope for each pair of points. When the slope changes you found an inflection point…

Best regards,
GerdW


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

@weitong wrote:

It consists of several strictly straight lines with different slopes.


If you have completely noiseless data, this is trivial. Where does the data come from?

What have you tried so far?

0 Kudos
Message 3 of 5
(4,318 Views)

These data points are generated by user defintion.  They are generated piece by piece, however they are stored in a 1D array without separation.   Sometimes, it is needed to be read back and rewapted into piece by piece from this 1D array for editing.

0 Kudos
Message 4 of 5
(4,273 Views)

You could just do two derivatives.  Where the second derivative is not 0 (change in slope), you got an inflection.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 5
(4,244 Views)