MathTop

detrend 函数

从数值序列中去除拟合直线趋势并返回残差。

语法

  • Statistics:-Detrend(list)
  • detrend(list)

参数与选项

list形如 [1, 2, 3] 的列表字面量。

示例

  1. 线性去趋势Statistics:-Detrend([1, 3, 6])返回 [0.166666666667, -0.333333333333, 0.166666666667]。