/dports/www/beehive/beehive-0.4.0/vendor/github.com/wcharczuk/go-chart/ |
H A D | ema_series.go | 24 return ema.Name 29 return ema.Style 34 return ema.YAxis 39 if ema.Period == 0 { 42 return ema.Period 60 if len(ema.cache) == 0 { 65 y = ema.cache[index] 75 if len(ema.cache) == 0 { 80 y = ema.cache[lastIndex] 87 sigma := ema.GetSigma() [all …]
|
H A D | ema_series_test.go | 85 ema := &EMASeries{ 90 sig := ema.GetSigma() 94 for x := 0; x < ema.Len(); x++ { 95 _, y := ema.GetValues(x) 103 lvx, lvy := ema.GetLastValues()
|
/dports/sysutils/istio/istio-1.6.7/mixer/pkg/loadshedding/ |
H A D | exponentialmovingaverage.go | 62 if now.After(ema.lastSampleTime) { 63 alpha = math.Exp(ema.decay * now.Sub(ema.lastSampleTime).Seconds()) 65 return alpha*ema.lastSmoothedDeviation + ema.lastSampleValue 69 ema.Lock() 70 curVal := ema.currentValueLocked(now) 71 ema.Unlock() 76 ema.Lock() 77 smoothedValue := ema.currentValueLocked(now) 79 ema.lastSampleValue = sample 80 ema.lastSampleTime = now [all …]
|
H A D | exponentialmovingaverage_test.go | 25 ema := newExponentialMovingAverage(1*time.Second, 0.0, time.Unix(0, 0)) 26 if got, want := ema.currentValue(time.Unix(0, 0)), 0.0; got != want { 31 ema.addSample(1, time.Unix(1, 0)) 32 if got, want := ema.currentValue(time.Unix(2, 0)), 0.5; got != want { 35 if got, want := ema.currentValue(time.Unix(3, 0)), 0.75; got != want { 43 ema.addSample(2, time.Unix(2, 0)) 44 if got, want := ema.currentValue(time.Unix(3, 0)), 1.25; got != want { 55 ema.addSample(3.5, time.Unix(2, 0)) 56 if got, want := ema.currentValue(time.Unix(3, 0)), 2.0; got != want { 61 ema.addSample(2.5, time.Unix(1, 0)) [all …]
|
/dports/security/vault/vault-1.8.2/vendor/github.com/influxdata/influxdb/query/internal/gota/ |
H A D | ema.go | 55 return ema.inTimePeriod - 1 59 func (ema *EMA) Warmed() bool { 60 return ema.count == ema.inTimePeriod 65 return ema.last 71 if ema.count == 0 { 74 lastAvg := ema.Last() 75 if !ema.Warmed() { 77 avg = (lastAvg*float64(ema.count) + v) / float64(ema.count+1) 88 ema.last = avg 89 if ema.count < ema.inTimePeriod { [all …]
|
H A D | ema_test.go | 12 ema := NewEMA(10, WarmSMA) 15 if vOut := ema.Add(v); ema.Warmed() { 67 ema := NewEMA(period, WarmSMA) 71 ema.Add(float64(i)) 72 if ema.Warmed() { 77 if got, want := i, ema.WarmCount(); got != want {
|
/dports/net-mgmt/prometheus2/prometheus-2.30.3/vendor/github.com/influxdata/influxdb/query/internal/gota/ |
H A D | ema.go | 55 return ema.inTimePeriod - 1 59 func (ema *EMA) Warmed() bool { 60 return ema.count == ema.inTimePeriod 65 return ema.last 71 if ema.count == 0 { 74 lastAvg := ema.Last() 75 if !ema.Warmed() { 77 avg = (lastAvg*float64(ema.count) + v) / float64(ema.count+1) 88 ema.last = avg 89 if ema.count < ema.inTimePeriod { [all …]
|
H A D | ema_test.go | 12 ema := NewEMA(10, WarmSMA) 15 if vOut := ema.Add(v); ema.Warmed() { 67 ema := NewEMA(period, WarmSMA) 71 ema.Add(float64(i)) 72 if ema.Warmed() { 77 if got, want := i, ema.WarmCount(); got != want {
|
/dports/net-p2p/go-ethereum/go-ethereum-1.10.14/vendor/github.com/influxdata/influxdb/query/internal/gota/ |
H A D | ema.go | 55 return ema.inTimePeriod - 1 59 func (ema *EMA) Warmed() bool { 60 return ema.count == ema.inTimePeriod 65 return ema.last 71 if ema.count == 0 { 74 lastAvg := ema.Last() 75 if !ema.Warmed() { 77 avg = (lastAvg*float64(ema.count) + v) / float64(ema.count+1) 88 ema.last = avg 89 if ema.count < ema.inTimePeriod { [all …]
|
H A D | ema_test.go | 12 ema := NewEMA(10, WarmSMA) 15 if vOut := ema.Add(v); ema.Warmed() { 67 ema := NewEMA(period, WarmSMA) 71 ema.Add(float64(i)) 72 if ema.Warmed() { 77 if got, want := i, ema.WarmCount(); got != want {
|
/dports/net-mgmt/bosun/bosun-0.9.0-preview/vendor/github.com/influxdata/influxdb/query/internal/gota/ |
H A D | ema.go | 55 return ema.inTimePeriod - 1 59 func (ema *EMA) Warmed() bool { 60 return ema.count == ema.inTimePeriod 65 return ema.last 71 if ema.count == 0 { 74 lastAvg := ema.Last() 75 if !ema.Warmed() { 77 avg = (lastAvg*float64(ema.count) + v) / float64(ema.count+1) 88 ema.last = avg 89 if ema.count < ema.inTimePeriod { [all …]
|
H A D | ema_test.go | 12 ema := NewEMA(10, WarmSMA) 15 if vOut := ema.Add(v); ema.Warmed() { 67 ema := NewEMA(period, WarmSMA) 71 ema.Add(float64(i)) 72 if ema.Warmed() { 77 if got, want := i, ema.WarmCount(); got != want {
|
/dports/net/tcpkali/tcpkali-1.1.1/src/ |
H A D | tcpkali_mavg.h | 46 exp_moving_average_init(exp_moving_average *ema, double decay) { in exp_moving_average_init() argument 48 *(double *)&ema->decay_factor = decay; in exp_moving_average_init() 49 ema->accumulator = 0 / 0.0; in exp_moving_average_init() 53 exp_moving_average_add(exp_moving_average *ema, double x) { in exp_moving_average_add() argument 54 if(isfinite(ema->accumulator) == 0) in exp_moving_average_add() 55 ema->accumulator = x; in exp_moving_average_add() 57 ema->accumulator = in exp_moving_average_add() 58 ema->decay_factor * x + (1 - ema->decay_factor) * ema->accumulator; in exp_moving_average_add()
|
/dports/sysutils/fcode-utils/fcode-utils-1.0.2/testlogs/testlogs-x86-cygwin/TokBrack/ |
H A D | TokBrkTst_04.fth | 16 100 constant pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 25 alias whoosis pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 29 : pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 32 pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 2 * constant clone 36 : pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_oilum 49 …pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz dup 20 - do i . loop… 67 pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 68 pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_oilum
|
/dports/sysutils/fcode-utils/fcode-utils-1.0.2/testsuite/TokBrack/ |
H A D | TokBrkTst_04.fth | 16 100 constant pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 25 alias whoosis pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 29 : pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 32 pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 2 * constant clone 36 : pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_oilum 49 …pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz dup 20 - do i . loop… 67 pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 68 pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_oilum
|
/dports/sysutils/fcode-utils/fcode-utils-1.0.2/testlogs/testlogs-ppc-linux/TokBrack/ |
H A D | TokBrkTst_04.fth | 16 100 constant pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 25 alias whoosis pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 29 : pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 32 pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 2 * constant clone 36 : pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_oilum 49 …pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz dup 20 - do i . loop… 67 pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 68 pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_oilum
|
/dports/sysutils/fcode-utils/fcode-utils-1.0.2/testlogs/testlogs-ppc-aix/TokBrack/ |
H A D | TokBrkTst_04.fth | 16 100 constant pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 25 alias whoosis pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 29 : pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 32 pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 2 * constant clone 36 : pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_oilum 49 …pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz dup 20 - do i . loop… 67 pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_aretz 68 pele_yoetz_ne-ema-an_anochi_hu_ha-omer_v-oseh_v-ain_c-moni_bchol_ha_oilum
|
/dports/finance/py-backtrader/backtrader-1.9.74.123/backtrader/indicators/ |
H A D | zlind.py | 70 self.ema = MovAv.EMA(period=self.p.period) 78 bestec = ema = self.ema[0] # seed value 1st time for ec 81 alpha, alpha1 = self.ema.alpha, self.ema.alpha1 85 ec = alpha * (ema + gain * (price - ec1)) + alpha1 * ec1
|
/dports/benchmarks/py-naarad/naarad-1.0.15/lib/luminol/src/luminol/ |
H A D | utils.py | 31 ema = [] 34 ema.append(points[0]) 36 ema.append(smoothing_factor * points[i] + (1 - smoothing_factor) * ema[i - 1]) 37 return ema
|
/dports/math/py-luminol/luminol-0.3.1/src/luminol/ |
H A D | utils.py | 29 ema = [] 32 ema.append(points[0]) 34 ema.append(smoothing_factor * points[i] + (1 - smoothing_factor) * ema[i - 1]) 35 return ema
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/scsi/libfc/ |
H A D | fc_exch.c | 913 if (!ema->match || ema->match(fp)) { in fc_exch_alloc() 1484 if ((!ema->match || ema->match(fp)) && in fc_seq_assign() 2005 if (ema->mp->min_xid <= xid && xid <= ema->mp->max_xid) in fc_exch_lookup() 2394 ema = kmalloc(sizeof(*ema), GFP_ATOMIC); in fc_exch_mgr_add() 2395 if (!ema) in fc_exch_mgr_add() 2396 return ema; in fc_exch_mgr_add() 2398 ema->mp = mp; in fc_exch_mgr_add() 2403 return ema; in fc_exch_mgr_add() 2429 kfree(ema); in fc_exch_mgr_del() 2443 if (!fc_exch_mgr_add(dst, ema->mp, ema->match)) in fc_exch_mgr_list_clone() [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/scsi/libfc/ |
H A D | fc_exch.c | 913 if (!ema->match || ema->match(fp)) { in fc_exch_alloc() 1484 if ((!ema->match || ema->match(fp)) && in fc_seq_assign() 2005 if (ema->mp->min_xid <= xid && xid <= ema->mp->max_xid) in fc_exch_lookup() 2394 ema = kmalloc(sizeof(*ema), GFP_ATOMIC); in fc_exch_mgr_add() 2395 if (!ema) in fc_exch_mgr_add() 2396 return ema; in fc_exch_mgr_add() 2398 ema->mp = mp; in fc_exch_mgr_add() 2403 return ema; in fc_exch_mgr_add() 2429 kfree(ema); in fc_exch_mgr_del() 2443 if (!fc_exch_mgr_add(dst, ema->mp, ema->match)) in fc_exch_mgr_list_clone() [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/scsi/libfc/ |
H A D | fc_exch.c | 913 if (!ema->match || ema->match(fp)) { in fc_exch_alloc() 1484 if ((!ema->match || ema->match(fp)) && in fc_seq_assign() 2005 if (ema->mp->min_xid <= xid && xid <= ema->mp->max_xid) in fc_exch_lookup() 2394 ema = kmalloc(sizeof(*ema), GFP_ATOMIC); in fc_exch_mgr_add() 2395 if (!ema) in fc_exch_mgr_add() 2396 return ema; in fc_exch_mgr_add() 2398 ema->mp = mp; in fc_exch_mgr_add() 2403 return ema; in fc_exch_mgr_add() 2429 kfree(ema); in fc_exch_mgr_del() 2443 if (!fc_exch_mgr_add(dst, ema->mp, ema->match)) in fc_exch_mgr_list_clone() [all …]
|
/dports/sysutils/py-liquidctl/liquidctl-1.7.2/extra/ |
H A D | yoda | 190 ema = averages[i] 192 if ema is None: 193 ema = sample 195 ema = alpha * sample + (1 - alpha) * ema 196 averages[i] = ema 199 duty = interpolate_profile(profile, ema) 201 channel, sensor, sample, ema, duty)
|
/dports/net/freeradius3/freeradius-server-3.0.25/src/main/ |
H A D | stats.c | 931 if (ema->f1 == 0) { in radius_stats_ema() 932 if (ema->window > 10000) ema->window = 10000; in radius_stats_ema() 934 ema->f1 = (2 * F_EMA_SCALE) / (ema->window + 1); in radius_stats_ema() 935 ema->f10 = (2 * F_EMA_SCALE) / ((10 * ema->window) + 1); in radius_stats_ema() 950 if (ema->ema1 == 0) { in radius_stats_ema() 951 ema->ema1 = micro; in radius_stats_ema() 952 ema->ema10 = micro; in radius_stats_ema() 956 diff = ema->f1 * (micro - ema->ema1); in radius_stats_ema() 959 diff = ema->f10 * (micro - ema->ema10); in radius_stats_ema() 967 ema->ema1 / PREC, (ema->ema1 / EMA_SCALE) % USEC, in radius_stats_ema() [all …]
|