/test-sensor-data-analysis

This is a Python script for anaysing sensor information

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

test-sensor-data-analysis

This is a Python script for anaysing sensor information

Notizen

Code-Beispiele

Lineare interpolation von Lücken in Messreihen

import numpy as np
from scipy import interpolate

def fill_nan(A):
    '''
    interpolate to fill nan values
    '''
    inds = np.arange(A.shape[0])
    good = np.where(np.isfinite(A))
    f = interpolate.interp1d(inds[good], A[good],bounds_error=False)
    B = np.where(np.isfinite(A),A,f(inds))
    return B

Links

NumPy documentation

SciPy documentation

SciPy signal processing documentation

Low pass filter example

Linear regression example

Python datetime documentation