HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CL_SlidingWindow Class Reference

#include <CL_SlidingWindow.h>

+ Inheritance diagram for CL_SlidingWindow:

Public Member Functions

 CL_SlidingWindow (int size, int overlap)
 
 CL_SlidingWindow (UT_IStream &is)
 
virtual ~CL_SlidingWindow ()
 
void filterSamples (int n, const fpreal *source, fpreal *dest)
 
void shiftSamples (int nsource, const fpreal *source, int ndest, fpreal *dest, int shift)
 
void setOverlap (int overlap)
 
void resize (int size, int preserve=0)
 
virtual void reset (fpreal val=0.0)
 
virtual int maxFilterSamples ()
 
virtual void save (UT_OStream &os)
 
virtual bool load (UT_IStream &is, int version)
 

Protected Attributes

int myWindowSize
 
int myOverlap
 
int myLastFilteredSample
 
fprealmyPreviousData
 
fprealmyMirrorData
 

Detailed Description

Definition at line 24 of file CL_SlidingWindow.h.

Constructor & Destructor Documentation

CL_SlidingWindow::CL_SlidingWindow ( int  size,
int  overlap 
)
CL_SlidingWindow::CL_SlidingWindow ( UT_IStream is)
virtual CL_SlidingWindow::~CL_SlidingWindow ( )
virtual

Member Function Documentation

void CL_SlidingWindow::filterSamples ( int  n,
const fpreal source,
fpreal dest 
)
virtual bool CL_SlidingWindow::load ( UT_IStream is,
int  version 
)
virtual

Reimplemented in CL_Despike.

virtual int CL_SlidingWindow::maxFilterSamples ( )
virtual

Reimplemented in CL_PitchDetect, and CL_Filter.

virtual void CL_SlidingWindow::reset ( fpreal  val = 0.0)
virtual
void CL_SlidingWindow::resize ( int  size,
int  preserve = 0 
)
virtual void CL_SlidingWindow::save ( UT_OStream os)
virtual

Reimplemented in CL_Despike.

void CL_SlidingWindow::setOverlap ( int  overlap)
void CL_SlidingWindow::shiftSamples ( int  nsource,
const fpreal source,
int  ndest,
fpreal dest,
int  shift 
)

Member Data Documentation

int CL_SlidingWindow::myLastFilteredSample
protected

Definition at line 54 of file CL_SlidingWindow.h.

fpreal* CL_SlidingWindow::myMirrorData
protected

Definition at line 57 of file CL_SlidingWindow.h.

int CL_SlidingWindow::myOverlap
protected

Definition at line 53 of file CL_SlidingWindow.h.

fpreal* CL_SlidingWindow::myPreviousData
protected

Definition at line 56 of file CL_SlidingWindow.h.

int CL_SlidingWindow::myWindowSize
protected

Definition at line 52 of file CL_SlidingWindow.h.


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