pyActigraphy.analysis.Fractal.local_msq_residuals

classmethod Fractal.local_msq_residuals(segment, deg)[source]

Mean squared residuals

Mean squared residuals of the least squares polynomial fit.

Parameters
  • segment (numpy.array) – Input array.

  • deg (int) – Degree(s) of the fitting polynomials.

Returns

residuals_msq – Mean squared residuals.

Return type

numpy.float