Commit e69668ff authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

proceeding

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 1465
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent cfe65526
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: sigfit.cc,v 1.2 2004-01-28 15:55:41 tforb Exp $
* $Id: sigfit.cc,v 1.3 2004-01-30 16:20:23 tforb Exp $
* \author Thomas Forbriger
* \date 28/01/2004
*
......@@ -19,7 +19,7 @@
#define SIGFIT_VERSION \
"SIGFIT V1.0 fit signal by trial-signals"
#define SIGFIT_CVSID \
"$Id: sigfit.cc,v 1.2 2004-01-28 15:55:41 tforb Exp $"
"$Id: sigfit.cc,v 1.3 2004-01-30 16:20:23 tforb Exp $"
#include <fstream>
#include <iostream>
......@@ -42,6 +42,7 @@ using std::endl;
// structure to store commandline options
struct Options {
bool verbose;
double Tdate;
}; // struct Options
int main(int iargc, char* argv[])
......@@ -51,7 +52,7 @@ int main(int iargc, char* argv[])
char usage_text[]=
{
SIGFIT_VERSION "\n"
"usage: sigfit [-v] signal trial [trial ...]" "\n"
"usage: sigfit [-v] [-Tdate v] signal trial [trial ...]" "\n"
" or: sigfit --help|-h" "\n"
};
......@@ -63,6 +64,8 @@ int main(int iargc, char* argv[])
"-v be verbose" "\n"
"-Sramp add a ramp to the set of trial signals" "\n"
"-Sconst add a constant to the set of trial signals" "\n"
"-Tdate v tolerance for comparison of date of first sample" "\n"
" v give the tolerance in units of the sampling interval" "\n"
"\n"
"signal signal to by explained by a linear combination" "\n"
" of trial signals" "\n"
......@@ -77,6 +80,8 @@ int main(int iargc, char* argv[])
{"help",arg_no,"-"},
// 1: verbose mode
{"v",arg_no,"-"},
// 1: verbose mode
{"Tdate",arg_yes,"0."},
{NULL}
};
......@@ -125,6 +130,7 @@ int main(int iargc, char* argv[])
// read options
Options opt;
opt.verbose=cmdline.optset(1);
opt.Tdate=cmdline.double_arg(2);
/*----------------------------------------------------------------------*/
......@@ -192,7 +198,8 @@ int main(int iargc, char* argv[])
/*----------------------------------------------------------------------*/
sff::WID2compare compare(sff::Fnsamples | sff::Fdt);
sff::WID2compare compare(sff::Fnsamples | sff::Fdt | sff::Fdate);
compare.setdatetolerance(opt.Tdate);
if (opt.verbose) { cout << "checking consistency..." << endl; }
for (Tbundlevec::const_iterator i=bundlevec.begin(); i!=bundlevec.end(); i++)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment