ET 开发人员参考 |
WorksheetFunction.Forecast 方法 |
语法
表达式.Forecast(Arg1, Arg2, Arg3)
表达式 一个代表 WorksheetFunction 对象的变量。
参数
名称 | 必选/可选 | 数据类型 | 说明 |
---|---|---|---|
Arg1 | 必选 | Double | X - 要预测其值的数据点。 |
Arg2 | 必选 | Variant | Known_y's - 相关数据数组或数据区域。 |
Arg3 | 必选 | Variant | Known_x's - 独立数据数组或数据区域。 |
返回值
Double
说明
且:
其中 x 和 y 为样本平均数 AVERAGE(known_x's) 和 AVERAGE(known y's)。