Function polyFitBetaBuf

Same as polyFitBeta, but allows the caller to provide an explicit buffer to return the coefficients in. If it's too short, a new one will be allocated. Otherwise, results will be returned in the user-provided buffer.

double[] polyFitBetaBuf(T, U) (
  double[] buf,
  U Y,
  T X,
  uint N,
  double ridge = 0
);