Function polyFit

Convenience function that takes a forward range X and a forward range Y, creates an array of PowMap structs for integer powers 0 through N, and calls linearRegress.

PolyFitRes!(PowMap!(uint,T)[]) polyFit(T, U) (
  U Y,
  T X,
  uint N,
  double confInt = 0.95
);

Returns

A PolyFitRes containing the array of PowMap structs created and a RegressRes. The PolyFitRes is alias this'd to the RegressRes.