descore ~master (2021-11-17T13:34:47.5426292)
Dub
Repo
MovingAverage
des
math
method
stat
moment
class
MovingAverage (
T
)
if
(
is
(
typeof
(
T
[].
init
.
mean
))
) {
T
[]
array
;
size_t
cur_index
;
size_t
max_length
;
this
(size_t mlen);
void
append
(T val);
size_t
maxLength
[@property getter];
size_t
maxLength
[@property setter];
T
avg
[@property getter];
}
Constructors
this
this
(size_t mlen)
Members
Functions
append
void
append
(T val)
Properties
avg
T
avg
[@property getter]
maxLength
size_t
maxLength
[@property getter]
maxLength
size_t
maxLength
[@property setter]
Variables
array
T
[]
array
;
cur_index
size_t
cur_index
;
max_length
size_t
max_length
;
Meta
Source
See Implementation
des
math
method
stat
moment
classes
MovingAverage
functions
centralMoment
mean
mean_variance
rawMoment
spow
variance