smoothts
Smooth data
smoothts
is not recommended. Use smoothdata
instead.
Syntax
Description
smooths the input data using the default Box method with window size,
output
= smoothts(input
)wsize
, of 5
.
output = smoothts(input,'b',wsize)
smooths the input data using
the Box (simple, linear) method. wsize
specifies the width of the
box to be used.
output = smoothts(input,'g',wsize,stdev)
smooths the input data
using the Gaussian window method.
output = smoothts(input,'e',n)
smooths the input data using
the Exponential method. n
can represent the window size (period
length) or alpha. If n > 1
, n
represents
the window size. If 0 < n < 1
, n
represents alpha, where
If input
is a financial time series object,
output
is a financial time series object identical to
input
except for contents. If input
is a
row-oriented matrix, output
is a row-oriented matrix of the same
length.