hper

hper(x)

Computes the Haar periodogram of x.

Takes:
x The time series as a vector of observations. Its length t does not have to be a power of two.

Returns:
TT The length of x.
S The sequence of Haar periodogram coefficients.