Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
RealDftNormalization Class Reference

#include <RealDftNormalization.h>

Public Types

enum  GlobalNormalization { InvalidGlobalNormalization =0, Standard =1, Consistent =2, Bin =3 }
 
enum  TermNormalization { InvalidTermNormalization =0, Unit =1, Power =2 }
 
using Index = unsigned int
 

Public Member Functions

 RealDftNormalization (GlobalNormalization gnorm, TermNormalization tnorm)
 
 RealDftNormalization (Index ignorm, Index itnorm)
 
 RealDftNormalization (Index inorm)
 
GlobalNormalization globalNormalization () const
 
bool isStandard () const
 
bool isConsistent () const
 
bool isBin () const
 
std::string globalName () const
 
TermNormalization termNormalization () const
 
bool isUnit () const
 
bool isPower () const
 
std::string termName () const
 
bool hasValidGlobalNormalization () const
 
bool hasValidTermNormalization () const
 
bool isValid () const
 
bool operator== (const RealDftNormalization &rhs)
 

Static Public Member Functions

static GlobalNormalization getGlobalNormalization (Index iarg)
 
static TermNormalization getTermNormalization (Index iarg)
 
static RealDftNormalization convolutionNormalization ()
 

Private Attributes

GlobalNormalization m_global = InvalidGlobalNormalization
 
TermNormalization m_term = InvalidTermNormalization
 

Detailed Description

Definition at line 93 of file RealDftNormalization.h.

Member Typedef Documentation

using RealDftNormalization::Index = unsigned int

Definition at line 97 of file RealDftNormalization.h.

Member Enumeration Documentation

Constructor & Destructor Documentation

RealDftNormalization::RealDftNormalization ( GlobalNormalization  gnorm,
TermNormalization  tnorm 
)
inline

Definition at line 118 of file RealDftNormalization.h.

119  : m_global(gnorm), m_term(tnorm) { }
GlobalNormalization m_global
TermNormalization m_term
RealDftNormalization::RealDftNormalization ( Index  ignorm,
Index  itnorm 
)
inline

Definition at line 120 of file RealDftNormalization.h.

GlobalNormalization m_global
static TermNormalization getTermNormalization(Index iarg)
TermNormalization m_term
static GlobalNormalization getGlobalNormalization(Index iarg)
RealDftNormalization::RealDftNormalization ( Index  inorm)
inlineexplicit

Definition at line 123 of file RealDftNormalization.h.

123 : RealDftNormalization(inorm%10, inorm/10) { }
RealDftNormalization(GlobalNormalization gnorm, TermNormalization tnorm)

Member Function Documentation

static RealDftNormalization RealDftNormalization::convolutionNormalization ( )
inlinestatic

Definition at line 162 of file RealDftNormalization.h.

static GlobalNormalization RealDftNormalization::getGlobalNormalization ( Index  iarg)
inlinestatic

Definition at line 103 of file RealDftNormalization.h.

static TermNormalization RealDftNormalization::getTermNormalization ( Index  iarg)
inlinestatic

Definition at line 109 of file RealDftNormalization.h.

std::string RealDftNormalization::globalName ( ) const
inline

Definition at line 130 of file RealDftNormalization.h.

130  {
131  if ( isStandard() ) return "standard";
132  if ( isConsistent() ) return "consistent";
133  if ( isBin() ) return "bin";
134  return "invalid";
135  }
GlobalNormalization RealDftNormalization::globalNormalization ( ) const
inline

Definition at line 126 of file RealDftNormalization.h.

126 { return m_global; }
GlobalNormalization m_global
bool RealDftNormalization::hasValidGlobalNormalization ( ) const
inline

Definition at line 148 of file RealDftNormalization.h.

148 { return isStandard() || isConsistent() || isBin(); }
bool RealDftNormalization::hasValidTermNormalization ( ) const
inline

Definition at line 149 of file RealDftNormalization.h.

149 { return isUnit() || isPower(); }
bool RealDftNormalization::isBin ( ) const
inline

Definition at line 129 of file RealDftNormalization.h.

129 { return globalNormalization() == Bin; }
GlobalNormalization globalNormalization() const
bool RealDftNormalization::isConsistent ( ) const
inline

Definition at line 128 of file RealDftNormalization.h.

bool RealDftNormalization::isPower ( ) const
inline

Definition at line 140 of file RealDftNormalization.h.

140 { return termNormalization() == Power; }
TermNormalization termNormalization() const
bool RealDftNormalization::isStandard ( ) const
inline

Definition at line 127 of file RealDftNormalization.h.

bool RealDftNormalization::isUnit ( ) const
inline

Definition at line 139 of file RealDftNormalization.h.

139 { return termNormalization() == Unit; }
TermNormalization termNormalization() const
bool RealDftNormalization::isValid ( ) const
inline

Definition at line 150 of file RealDftNormalization.h.

bool RealDftNormalization::operator== ( const RealDftNormalization rhs)
inline

Definition at line 153 of file RealDftNormalization.h.

153  {
154  if ( ! isValid() ) return false;
155  if ( ! rhs.isValid() ) return false;
156  if ( globalNormalization() != rhs.globalNormalization() ) return false;
157  if ( termNormalization() != rhs.termNormalization() ) return false;
158  return true;
159  }
TermNormalization termNormalization() const
GlobalNormalization globalNormalization() const
std::string RealDftNormalization::termName ( ) const
inline

Definition at line 141 of file RealDftNormalization.h.

141  {
142  if ( isUnit() ) return "unit";
143  if ( isPower() ) return "power";
144  return "invalid";
145  }
TermNormalization RealDftNormalization::termNormalization ( ) const
inline

Definition at line 138 of file RealDftNormalization.h.

138 { return m_term; }
TermNormalization m_term

Member Data Documentation

GlobalNormalization RealDftNormalization::m_global = InvalidGlobalNormalization
private

Definition at line 166 of file RealDftNormalization.h.

TermNormalization RealDftNormalization::m_term = InvalidTermNormalization
private

Definition at line 167 of file RealDftNormalization.h.


The documentation for this class was generated from the following file: