sincBlackman Class Reference

#include <util_sparx.h>

Collaboration diagram for sincBlackman:

Collaboration graph
[legend]

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.


Detailed Description

Definition at line 142 of file util_sparx.h.


Constructor & Destructor Documentation

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

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

Definition at line 153 of file util_sparx.h.

00153 {};


Member Function Documentation

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

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

Definition at line 155 of file util_sparx.h.

References fltb, and sBtable.

00155                                                        {
00156                         float xt;
00157                         if(x<0.0f) xt = -x*fltb+0.5f; else xt = x*fltb+0.5f;
00158                         return sBtable[ (int) xt];
00159                 }

int sincBlackman::get_sB_size (  )  const [inline]

Return the size of the kernel.

Definition at line 161 of file util_sparx.h.

References M.

00161 { return M; }


Member Data Documentation

int sincBlackman::M [protected]

Definition at line 145 of file util_sparx.h.

Referenced by get_sB_size().

float sincBlackman::fc [protected]

kernel size

Definition at line 146 of file util_sparx.h.

int sincBlackman::ntable [protected]

cut-off frequency

Definition at line 147 of file util_sparx.h.

vector<float> sincBlackman::sBtable [protected]

Definition at line 148 of file util_sparx.h.

Referenced by sBwin_tab().

float sincBlackman::fltb [protected]

Tabulate kernel for speed.

Definition at line 150 of file util_sparx.h.

Referenced by sBwin_tab().


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

Generated on Sun Nov 22 02:19:53 2009 for EMAN2 by  doxygen 1.5.6