LinearRegression3D
public struct LinearRegression3DResult of a bivariate linear regression calculation for 3D charts. Represents the plane y = a + bx + cz.
Fields
Section titled “Fields”
XSlope
Section titled “XSlope”public float XSlopeX-axis slope coefficient (b in y = a + bx + cz).
Returns
System.Single — No return description is available.
ZSlope
Section titled “ZSlope”public float ZSlopeZ-axis slope coefficient (c in y = a + bx + cz).
Returns
System.Single — No return description is available.
Intercept
Section titled “Intercept”public float InterceptY-intercept of the regression plane (a in y = a + bx + cz).
Returns
System.Single — No return description is available.
RSquared
Section titled “RSquared”public float RSquaredCoefficient of determination (R²), indicating fit quality (0-1).
Returns
System.Single — No return description is available.
Methods
Section titled “Methods”
Evaluate(float, float)
Section titled “Evaluate(float, float)”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.
ToFunction()
Section titled “ToFunction()”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.
Fit(float[], float[], float[])
Section titled “Fit(float[], float[], float[])”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.
Fit(IList)
Section titled “Fit(IList)”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.
Fit(IList)
Section titled “Fit(IList)”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.