Waveform filter programs
◆
removetre()
void removetre
(
Tseries
&
s
)
Definition at line
114
of file
sigfit.cc
.
115
{
116
TFXX_abort(
"removetre does not work"
);
117
double
sum=0.;
118
double
jser=0.;
119
double
jqser=0.;
120
for
(
int
i=s.first(); i<=s.last(); ++i)
121
{
122
sum += s(i);
123
jser += i;
124
jqser += i*i;
125
}
126
//double a,b;
127
sum /= s.size();
128
for
(
int
i=s.first(); i<=s.last(); ++i) { s(i) -= sum; }
129
}
sigfit.cc
Generated on Mon Aug 21 2023 17:36:35 for Waveform filter programs by
1.8.14