Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

sincBlackman Class Reference

#include <util_sparx.h>

List of all members.

Public Member Functions

 sincBlackman (int M_, float fc_, int ntable_=1999)
virtual ~sincBlackman ()
float sBwin_tab (float x) const
int get_sB_size () const
 Return the size of the kernel.

Protected Member Functions

virtual void build_sBtable ()

Protected Attributes

int M
float fc
 kernel size
int ntable
 cut-off frequency
vector< float > sBtable
float fltb
 Tabulate kernel for speed.


Constructor & Destructor Documentation

sincBlackman::sincBlackman int  M_,
float  fc_,
int  ntable_ = 1999
 

virtual sincBlackman::~sincBlackman  )  [inline, virtual]
 

Definition at line 187 of file util_sparx.h.

00187 {};


Member Function Documentation

virtual void sincBlackman::build_sBtable  )  [protected, virtual]
 

int sincBlackman::get_sB_size  )  const [inline]
 

Return the size of the kernel.

Definition at line 195 of file util_sparx.h.

00195 { return M; }

float sincBlackman::sBwin_tab float  x  )  const [inline]
 

Definition at line 189 of file util_sparx.h.

References x.

00189                                                        {
00190                         float xt;
00191                         if(x<0.0f) xt = -x*fltb+0.5f; else xt = x*fltb+0.5f;
00192                         return sBtable[ (int) xt];
00193                 }


Member Data Documentation

float sincBlackman::fc [protected]
 

kernel size

Definition at line 180 of file util_sparx.h.

float sincBlackman::fltb [protected]
 

Tabulate kernel for speed.

Definition at line 184 of file util_sparx.h.

int sincBlackman::M [protected]
 

Definition at line 179 of file util_sparx.h.

int sincBlackman::ntable [protected]
 

cut-off frequency

Definition at line 181 of file util_sparx.h.

vector<float> sincBlackman::sBtable [protected]
 

Definition at line 182 of file util_sparx.h.


The documentation for this class was generated from the following file:
Generated on Tue Jun 11 13:47:40 2013 for EMAN2 by  doxygen 1.3.9.1