449 std::replace(s.begin(),s.end(),
',',
' ');
450 TSXX_debug(debug,
"make_filter",
"process " + s );
454 std::istringstream is(s);
456 TSXX_debug(debug,
"make_filter",
" filter ID is " + ID );
461 fh=Tfh(
new RemoveTrend(n));
462 }
else if (ID==
"iset") {
464 fh=Tfh(
new SetByIndex(n,n2,v));
465 }
else if (ID==
"avg") {
467 fh=Tfh(
new RemoveAverage(n));
468 }
else if (ID==
"han") {
469 fh=Tfh(
new HanningTaper());
470 }
else if (ID==
"fac") {
472 fh=Tfh(
new Scale(v));
473 }
else if (ID==
"add") {
475 TSXX_debug(debug,
"make_filter",
" filter is: Add(" << v <<
")" );
477 }
else if (ID==
"fbl") {
479 fh=Tfh(
new ForceToBase(n, n2, n3));
480 }
else if (ID==
"pow") {
482 fh=Tfh(
new Powerof(v));
483 }
else if (ID==
"rev") {
484 fh=Tfh(
new Reverse());
485 }
else if (ID==
"sqr") {
486 fh=Tfh(
new Square());
487 }
else if (ID==
"sqt") {
488 fh=Tfh(
new SquareRoot());
489 }
else if (ID==
"rec") {
490 fh=Tfh(
new Rectifier());
491 }
else if (ID==
"cus") {
492 fh=Tfh(
new CumSum());
493 }
else if (ID==
"del") {
495 fh=Tfh(
new Delay(v));
496 }
else if (ID==
"noi") {
498 fh=Tfh(
new GaussianNoise(v));
499 }
else if (ID==
"nrm") {
501 fh=Tfh(
new Normalize(v));
502 }
else if (ID==
"lof") {
503 fh=Tfh(
new RemoveFirst());
504 }
else if (ID==
"rsf") {
505 fh=Tfh(
new RestoreFirst());
506 }
else if (ID==
"pad") {
510 TSXX_debug(debug,
"make_filter",
" filter ID " + ID +
" is unknown" );
tfxx::Handle< BasicFilter > Tfilterhandle
handle to pass filters
Ttimeseries::Tvalue Tvalue
we always work in double precision
#define TSXX_debug(C, N, M)
produce debug output
#define TSXX_UnknownFilterAbort(M, F)