07-27-2023 01:21 AM - edited 07-27-2023 01:23 AM
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.
08-01-2023 05:39 AM
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.
08-01-2023 08:08 AM
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