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
)

Return Value

Type: double[]

An array of doubles. The index of each element corresponds to the exponent. For example, the X<sup>2</sup> term will have an index of 2.

Meta