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

PSD norm

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: 2392
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 035c8c58
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: tapers.cc,v 1.3 2007-09-17 09:04:46 tforb Exp $
* $Id: tapers.cc,v 1.4 2007-09-17 10:07:31 tforb Exp $
* \author Thomas Forbriger
* \date 06/09/2007
*
......@@ -13,13 +13,14 @@
*
* REVISIONS and CHANGES
* - 06/09/2007 V1.0 Thomas Forbriger
* - 17/09/2007 V1.1 added PSD norm
*
* ============================================================================
*/
#define TF_TAPERS_CC_VERSION \
"TF_TAPERS_CC V1.0 "
"TF_TAPERS_CC V1.1"
#define TF_TAPERS_CC_CVSID \
"$Id: tapers.cc,v 1.3 2007-09-17 09:04:46 tforb Exp $"
"$Id: tapers.cc,v 1.4 2007-09-17 10:07:31 tforb Exp $"
#include <tsxx/tapers.h>
#include <cmath>
......
......@@ -3,7 +3,7 @@
*
* ----------------------------------------------------------------------------
*
* $Id: tapers.h,v 1.3 2007-09-17 09:04:46 tforb Exp $
* $Id: tapers.h,v 1.4 2007-09-17 10:07:31 tforb Exp $
* \author Thomas Forbriger
* \date 06/09/2007
*
......@@ -13,6 +13,7 @@
*
* REVISIONS and CHANGES
* - 06/09/2007 V1.0 Thomas Forbriger
* - 17/09/2007 V1.1 added PSD norm
*
* ============================================================================
*/
......@@ -21,9 +22,9 @@
#ifndef TF_TAPERS_H_VERSION
#define TF_TAPERS_H_VERSION \
"TF_TAPERS_H V1.0 "
"TF_TAPERS_H V1.1"
#define TF_TAPERS_H_CVSID \
"$Id: tapers.h,v 1.3 2007-09-17 09:04:46 tforb Exp $"
"$Id: tapers.h,v 1.4 2007-09-17 10:07:31 tforb Exp $"
namespace ts {
......@@ -52,7 +53,7 @@ namespace ts {
* \f$ W=\sqrt{\frac{\sum\limits_{k=1}^{N} w_k^2}{N}} \f$
* \sa ts::tapers::Taper::psdapply
*/
virtual double psdnorm() const;
virtual double psdnorm() const =0;
private:
//! will be called prior to value to set ranges.
virtual void init(const int& f, const int& l) const =0;
......@@ -70,6 +71,7 @@ namespace ts {
private:
void init(const int& f, const int& l) const;
double value(const int& i) const;
double psdnorm() const;
mutable int Mf; //<! first index
mutable double Mfac; //<! sine function argument scaling
}; // class Hanning
......
Supports Markdown
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