EMAN2
Public Member Functions | Protected Member Functions | Protected Attributes
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 181 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 192 of file util_sparx.h.

{};

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 200 of file util_sparx.h.

References M.

{ return M; }
float sincBlackman::sBwin_tab ( float  x) const [inline]

Definition at line 194 of file util_sparx.h.

References fltb, and sBtable.

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

Member Data Documentation

float sincBlackman::fc [protected]

kernel size

Definition at line 185 of file util_sparx.h.

float sincBlackman::fltb [protected]

Tabulate kernel for speed.

Definition at line 189 of file util_sparx.h.

Referenced by sBwin_tab().

int sincBlackman::M [protected]

Definition at line 184 of file util_sparx.h.

Referenced by get_sB_size().

int sincBlackman::ntable [protected]

cut-off frequency

Definition at line 186 of file util_sparx.h.

vector<float> sincBlackman::sBtable [protected]

Definition at line 187 of file util_sparx.h.

Referenced by sBwin_tab().


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