Waveform filter programs

◆ removeavg()

void removeavg ( Tseries s)

Definition at line 105 of file sigfit.cc.

106 {
107  double avg=0.;
108  for (int i=s.first(); i<=s.last(); ++i) { avg += s(i); }
109  avg /= s.size();
110  for (int i=s.first(); i<=s.last(); ++i) { s(i) -= avg; }
111 }