def _smooth_Dv(self, r, D, v): p = ppfit.ppolyfit(r, D, pieces=6, left=(0, [0,0])) Ds = ppfit.ppolyval(p, r) p = ppfit.ppolyfit(r, v, pieces=6, left=(0, [0,0])) vs = ppfit.ppolyval(p, r) return r, Ds, vs
def _smooth_chord(self, chord_index): signal = self.data[chord_index] p = ppfit.ppolyfit(self.time, signal, 20, deg=3) smooth = ppfit.ppolyval(p, self.time) return self.time, smooth