(PECL trader >= 0.2.0)
trader_linearreg — 線性回歸
$real
$timePeriod
real
實數值陣列。
timePeriod
週期數。有效範圍從 2 到 100000。
返回一個包含計算數據的陣列,如果失敗則返回 false。