DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Find minimum and maximum of channel within a specified index range

Hi,

 

Is it possible to find the minimum and maximum value of channel within a specified index range. [ between particular start and end position]?

example:

Channel name: test

overall Length of channel: 100

usually maximum and minimum property gives min/max value which corresponds to all 100 items. But is it possible to find minimum and maximum value of channel from 10th element to 90th element.?

 

using FOR loop to find local min or max consumes more time. Is there any simplest option to achieve this min and max value between the starting position and end position.

 

0 Kudos
Message 1 of 3
(1,106 Views)

Hello,

Indeed, it is feasible to find the base and most extreme worth of a channel inside a predetermined record range. In the event that you have a channel named "test" with a general length of 100, you can utilize a reach file to get the base and greatest qualities between the tenth and 90th component. In many programming dialects or information examination devices, you can utilize cluster cutting or sifting strategies to remove the ideal components from the channel and afterward track down the base and greatest qualities inside that subset.

Best Regards.

0 Kudos
Message 2 of 3
(1,047 Views)

Hello Durai26,

 

you can use the function ChnStatisticsChannelCalc which provides two parameters to set the start and end index. Refer to the help to learn more about the parameters. The following command only looks at the values between line 10 and 90 to find the values for the minimun and maximun within this range.

 

dim Min, Max
call ChnStatisticsChannelCalc("[1]/test", eStatsMinimum or eStatsMaximum, 10, 90, False, False, False, "NameName")
Min = StatsResult(eStatsMinimum)
Max = StatsResult(eStatsMaximum)
print(Min & vbcrlf & Max)

 

Regards,

AnJalpaka

Message 3 of 3
(1,026 Views)