Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

threshhold crossing on list python

>>> a = np.array([9, 9, 6, 3, 1, 6, 1, 0, 0, 8])
>>> from scipy import stats
>>> stats.threshold(a, threshmin=2, threshmax=8, newval=-1)
array([-1, -1,  6,  3, -1,  6, -1, -1, -1,  8])
Source by docs.scipy.org #
 
PREVIOUS NEXT
Tagged: #threshhold #crossing #list #python
ADD COMMENT
Topic
Name
8+5 =