Quantcast
Channel: DIAdem topics
Viewing all articles
Browse latest Browse all 3196

DIAdem script to compute the run length between samples

$
0
0

Could you please suggest how can we compute the number of maximum continuous samples that occur between 2 threshold values using DIAdem?

I am creating 10 threshold based on the below python script:

import numpy as np threshold_list = np.linspace(th_mean,th_max, num = 10, endpoint= False)

 

If we assume th_mean =30 and th_max = 32, it will generate threshold_list as below:

[30. 30.2 30.4 30.6 30.8 31. 31.2 31.4 31.6 31.8]

 

How can we determinate the number of maximum continuous values between each threshold interval ?
For example if we consider the interval 31.8 to 31.6 , we need to compute how many continuous samples are less than or equal to 31.8 & greater than 31.6


Viewing all articles
Browse latest Browse all 3196

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>