DOTS Geometry
 
Loading...
Searching...
No Matches
StatisticsUtil Class Reference

Static Public Member Functions

static Line2D EstimateRegressionLine2D (float2 average, NativeArray< float2 > values, float epsilon=10e-5f)
 Calculates a regression line (based on least-squares). The slope and intercept factors are directly interpreted as a Line2D, ready to be used in geometry algorithms.
 

Member Function Documentation

◆ EstimateRegressionLine2D()

static Line2D EstimateRegressionLine2D ( float2 average,
NativeArray< float2 > values,
float epsilon = 10e-5f )
static

Calculates a regression line (based on least-squares). The slope and intercept factors are directly interpreted as a Line2D, ready to be used in geometry algorithms.

Parameters
average
values
epsilon
Returns