Function polyFitBeta
Convenience function that takes a forward range X and a forward range Y, creates an array of PowMap structs for integer powers from 0 through N, and calls linearRegressBeta.
double[] polyFitBeta(T, U)
(
U Y,
T X,
uint N,
double ridge = 0
);
Returns
An array of doubles. The index of each element corresponds to the exponent. For example, the X2 term will have an index of 2.