Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Seitosh
Seitosh
Commits
4eba7a68
Commit
4eba7a68
authored
Jan 14, 2019
by
thomas.forbriger
Browse files
libpsdxx [WP]: rename Taper -> LogTaper
parent
12729e45
Changes
3
Show whitespace changes
Inline
Side-by-side
src/libs/libpsdxx/helper.h
View file @
4eba7a68
...
...
@@ -120,7 +120,7 @@ namespace psd {
/*! \brief Taper function class
*/
class
Taper
class
Log
Taper
{
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
,
Log
Taper
(
const
psd
::
TDseries
::
Tcoc
&
f
,
const
unsigned
int
&
i
);
~
Taper
();
~
Log
Taper
();
double
operator
()(
const
double
&
f
);
double
sum
()
const
{
return
(
Msum
);
}
private:
double
Msum
;
LogIndex
*
Mli
;
Eedge
Mloc
;
};
// class Taper
};
// class
Log
Taper
}
// namespace helper
...
...
src/libs/libpsdxx/log_taper.cc
View file @
4eba7a68
...
...
@@ -41,7 +41,7 @@ namespace psd {
namespace
helper
{
Taper
::
Taper
(
const
psd
::
TDseries
::
Tcoc
&
f
,
Log
Taper
::
Log
Taper
(
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,
}
//
Log
Taper::
Log
Taper(const psd::TDseries::Tcoc& f,
// const unsigned int& i)
/* ---------------------------------------------------------------------- */
Taper
::~
Taper
()
Log
Taper
::~
Log
Taper
()
{
delete
Mli
;
}
// Taper::~Taper()
}
//
Log
Taper::~
Log
Taper()
/* ---------------------------------------------------------------------- */
double
Taper
::
operator
()(
const
double
&
f
)
double
Log
Taper
::
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
Log
Taper::operator()(const double& f) const
}
// namespace helper
...
...
src/libs/libpsdxx/testpsdxx.cc
View file @
4eba7a68
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment