Esempio n. 1
0
 def _ewma(v):
     result = algos.ewma(v, com, int(adjust))
     first_index = _first_valid_index(v)
     result[first_index: first_index + min_periods] = NaN
     return result
Esempio n. 2
0
 def _ewma(v):
     result = algos.ewma(v, com, int(adjust), int(ignore_na))
     if min_periods > 1:
         first_index = _first_valid_index(v)
         result[first_index:first_index + min_periods - 1] = NaN
     return result
Esempio n. 3
0
 def _ewma(v):
     return algos.ewma(v, com, int(adjust), int(ignore_na),
                       int(min_periods))
Esempio n. 4
0
 def _ewma(v):
     result = algos.ewma(v, com, int(adjust))
     first_index = _first_valid_index(v)
     result[first_index: first_index + min_periods] = NaN
     return result
Esempio n. 5
0
 def _ewma(v):
     result = algos.ewma(v, com, int(adjust), int(ignore_na))
     if min_periods > 1:
         first_index = _first_valid_index(v)
         result[first_index: first_index + min_periods - 1] = NaN
     return result
Esempio n. 6
0
 def _ewma(v):
     return algos.ewma(v, com, int(adjust), int(ignore_na), int(min_periods))