Skip to content

LinearRegressionResult

StructChartGuruChartGuru
public struct LinearRegressionResult

Result of a linear regression calculation.

public float Slope

Slope of the regression line (b in y = a + bx).

Returns

System.Single — No return description is available.

public float Intercept

Y-intercept of the regression line (a in y = a + bx).

Returns

System.Single — No return description is available.

public float RSquared

Coefficient of determination (R²), indicating fit quality (0-1).

Returns

System.Single — No return description is available.

public Func<float, float> ToFunction()

Creates a function that evaluates the regression line at any x value.

Returns

System.Func{System.Single,System.Single} — No return description is available.