StarStatsXY extension

A class that takes in XY data and can perform some algebraic utilities.

on

Properties

adjDetCoefficient num
Calculates the adjusted coefficient of determination. This is the strength of the data fit for a given model.
no setter
corCoefficient num
Calculates the correlation coefficient. This is the strength of the linear relationship of given points.
no setter
cubicReg List<num>
Calculate quadratic regression of a set of points: Returns a list of form y = ax^3 + bx^2 + cx + d, with cubicReg[0] being a, cubicReg[1] being b, cubicReg[2] being c, and cubicReg[3] being d.
no setter
detCoefficient num
Calculates the coefficient of determination. This is the strength of the data fit for a given model.
no setter
linReg List<num>
Calculate linear regression of a set of points: Returns a list of form y = mx + b, with linearReg[0] being m and linearReg[1] being b.
no setter
quadReg List<num>
Calculate quadratic regression of a set of points: Returns a list of form y = ax^2 + bx + c, with quadReg[0] being a, quadReg[1] being b, and quadreg[2] being c.
no setter
quarReg List<num>
Calculate quartic regression of a set of points: Returns a list of form y = ax^4 + bx^3 + cx^2 + dx + e, with cubicReg[0] being a, cubicReg[1] being b, cubicReg[2] being c, cubicReg[3] being d, and cubicReg[4] being e.
no setter
x List<num>
Get the x coordinates of the given data.
no setter
y List<num>
Get the y coordinates of the given data.
no setter