Commit 4eba7a68 authored by thomas.forbriger's avatar thomas.forbriger
Browse files

libpsdxx [WP]: rename Taper -> LogTaper

parent 12729e45
......@@ -120,7 +120,7 @@ namespace psd {
/*! \brief Taper function class
*/
class Taper
class LogTaper
{
private:
/*! Indicate location of center of taper
......@@ -131,16 +131,16 @@ namespace psd {
Flower_end=(1<<2), //!< largest frequency index
}; // enum Eedge
public:
Taper(const psd::TDseries::Tcoc& f,
LogTaper(const psd::TDseries::Tcoc& f,
const unsigned int& i);
~Taper();
~LogTaper();
double operator()(const double& f);
double sum() const { return(Msum); }
private:
double Msum;
LogIndex* Mli;
Eedge Mloc;
}; // class Taper
}; // class LogTaper
} // namespace helper
......
......@@ -41,7 +41,7 @@ namespace psd {
namespace helper {
Taper::Taper(const psd::TDseries::Tcoc& f,
LogTaper::LogTaper(const psd::TDseries::Tcoc& f,
const unsigned int& i): Msum(0)
{
PSDXX_assert(f.size()>2,
......@@ -62,19 +62,19 @@ namespace psd {
this->Mli=new psd::helper::LogIndex(f(f.f()+i-1),
f(f.f()+i), f(f.f()+i+1));
}
} // Taper::Taper(const psd::TDseries::Tcoc& f,
} // LogTaper::LogTaper(const psd::TDseries::Tcoc& f,
// const unsigned int& i)
/* ---------------------------------------------------------------------- */
Taper::~Taper()
LogTaper::~LogTaper()
{
delete Mli;
} // Taper::~Taper()
} // LogTaper::~LogTaper()
/* ---------------------------------------------------------------------- */
double Taper::operator()(const double& f)
double LogTaper::operator()(const double& f)
{
double retval=0;
double rindex=this->Mli->operator()(f);
......@@ -127,7 +127,7 @@ namespace psd {
this->Msum += retval;
return(retval);
} // double Taper::operator()(const double& f) const
} // double LogTaper::operator()(const double& f) const
} // namespace helper
......
......@@ -31,7 +31,8 @@ using std::endl;
struct Options
{
bool verbose, logfrequency, logindex;
bool verbose, logfrequency, logindex, logtaper;
int taperindex;
}; // Options
/* ====================================================================== */
......@@ -55,7 +56,7 @@ int main(int iargc, char* argv[])
char usage_text[]=
{
TESTPSDXX_VERSION "\n"
"usage: testpsdxx [-lf] [-li]" "\n"
"usage: testpsdxx [-lf] [-li] [-lt [i]]" "\n"
" or: testpsdxx --help|-h" "\n"
};
......@@ -63,6 +64,8 @@ int main(int iargc, char* argv[])
char help_text[]=
{
"-lf test function log_frequency"
"-li test function class LogIndex"
"-lt test function class LogTaper"
};
// define commandline options
......
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