Skip to content

LinearRegression3D

StructChartGuruChartGuru
public struct LinearRegression3D

Result of a bivariate linear regression calculation for 3D charts. Represents the plane y = a + bx + cz.

public float XSlope

X-axis slope coefficient (b in y = a + bx + cz).

Returns

System.Single — No return description is available.

public float ZSlope

Z-axis slope coefficient (c in y = a + bx + cz).

Returns

System.Single — No return description is available.

public float Intercept

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

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 float Evaluate(float x, float z)

Evaluates the fitted regression plane at an x/z coordinate.

Parameters

Name Type Description
x System.Single
z System.Single

Returns

System.Single — No return description is available.

public Func<float, float, float> ToFunction()

Creates a function that evaluates the regression plane at any x/z coordinate.

Returns

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

public static LinearRegression3D Fit(float[] x, float[] y, float[] z)

No description is available for this member.

Parameters

Name Type Description
x System.Single[]
y System.Single[]
z System.Single[]

Returns

ChartGuru.LinearRegression3D — No return description is available.

public static LinearRegression3D Fit(IList<DataPoint3D> points)

No description is available for this member.

Parameters

Name Type Description
points System.Collections.Generic.IList{ChartGuru.DataPoint3D}

Returns

ChartGuru.LinearRegression3D — No return description is available.

public static LinearRegression3D Fit(IList<Vector3> points)

No description is available for this member.

Parameters

Name Type Description
points System.Collections.Generic.IList{UnityEngine.Vector3}

Returns

ChartGuru.LinearRegression3D — No return description is available.

Fit(IEnumerable, Func<T, float>, Func<T, float>, Func<T, float>)

Section titled “Fit(IEnumerable, Func<T, float>, Func<T, float>, Func<T, float>)”
public static LinearRegression3D Fit<T>(IEnumerable<T> data, Func<T, float> xSelector, Func<T, float> ySelector, Func<T, float> zSelector)

No description is available for this member.

Parameters

Name Type Description
data System.Collections.Generic.IEnumerable{{T}}
xSelector System.Func{{T},System.Single}
ySelector System.Func{{T},System.Single}
zSelector System.Func{{T},System.Single}

Returns

ChartGuru.LinearRegression3D — No return description is available.