descore ~master (2015-04-21T20:17:28Z)
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
(
in
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
(
in
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