Perform a polynomial fit, subtract and return the standard deviation of the residuals.

calc_sd_poly(y, degree = 1)

Arguments

y

array.

degree

polynomial degree.

Value

standard deviation of the fit residuals.