Skip to main content

regr_slope

引入版本:v26.9.0 返回 y 对 x 的最小二乘拟合的斜率: Σ(x−xˉ)(y−yˉ)Σ(x−xˉ)2\frac{\Sigma{(x - \bar{x})(y - \bar{y})}}{\Sigma{(x - \bar{x})^2}} 当 x 为常量时返回 nan,因为此时拟合直线垂直于 x 轴。 语法
别名:regrSlope 参数 返回值 返回回归直线的斜率。 Float64 示例 基本用法
Query
Response
最后修改于 2026年10月14日