Given a numeric vector x, this function calculates the the maximum departure of x from an expected linear increase in cumulative energy based on
给出一个数字向量x,这个函数计算的最大偏差x预期的线性累积能量的基础上增加
用法----------Usage----------
D.statistic(x)
参数----------Arguments----------
参数:x
a numeric vector.
一个数值向量。
参见----------See Also----------
实例----------Examples----------
## compare the D-statistic for a white noise [#D-统计量比较白噪声]
## realization and a random walk. the random [实现和随机游走。随机]
## walk D-statistic will be relatively large in [#走路D-统计量会比较大,在]
## comparison to that of the white noise [#比较的白噪声]
## realization, signifying a stronger departure [#实现,标志着一个强大的离境]
## from an expected increase in cumulative [#预期增长,累计]
## energy. [#能量。]
D.statistic(rnorm(1024))
D.statistic(cumsum(rnorm(1024)))