Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

clSpectDirDipole2 Class Reference

Spectrum based direction finding for dipole array. More...

#include <SpectDirDipole2.hh>

Inheritance diagram for clSpectDirDipole2:

Inheritance graph
[legend]
Collaboration diagram for clSpectDirDipole2:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 clSpectDirDipole2 (GDT, GDT, double, long, int, long, GDT, bool)
 Constructor.

 ~clSpectDirDipole2 ()
void PutData (const GDT *, long, long, long)
 Put data into input FIFO.

bool GetResults (GDT *, GDT *, GDT, int, stpSpectDir2RN)
 Get copy of results.

GDT * GetLevels ()
 Get pointer to level results.

GDT * GetDirections ()
 Get pointer to direction results.

GDT GetIntegrationTime ()
 Get integration time (seconds).

GDT GetFreqResolution ()
 Get frequency resolution (Hz).

long GetMinBin ()
 Get minimum used spectrum bin.

long GetMaxBin ()
 Get maximum used spectrum bin.

long GetResultCount ()
 Get result count.


Private Member Functions

void Calculate (int, stpSpectDir2RN)

Private Attributes

bool bDebug
long lFilterSize
long lFFTSize
long lDecimation
long lSpectSize
long lMinBin
long lMaxBin
long lNewData
long lOldData
float fOverlap
GDT fFreqRes
GDT fIntTime
GDT * fpWinFunc
GDT * fpLevRes
GDT * fpDirRes
GDT * fpExtBuf
GDT * fpProcBuf [2]
GDT * fpPrevBuf [2]
GDT * fpRNBuf [2]
GCDT * spSpect [2]
clDSPAlloc WinFuncBuf
clDSPAlloc LevResBuf
clDSPAlloc DirResBuf
clDSPAlloc ExtBuf
clDSPAlloc ProcBuf [2]
clDSPAlloc PrevBuf [2]
clDSPAlloc RNBuf [2]
clDSPAlloc SpectBuf [2]
clRecDecimator Decimator [2]
clRemoveNoise BNER

Detailed Description

Spectrum based direction finding for dipole array.

This is used by clDirection3.

Note:
See clSpectDirDipole for details!

Definition at line 61 of file SpectDirDipole2.hh.


Constructor & Destructor Documentation

clSpectDirDipole2::clSpectDirDipole2 GDT  ,
GDT  ,
double  ,
long  ,
int  ,
long  ,
GDT  ,
bool 
 

Constructor.

Parameters:
fSensorSpacing Sensor spacing (m)
fSoundSpeed Speed of sound (m/s)
dSampleRate Samplerate
lFiltSize Size of filter (points)
iFilterType Type of decimation filter
lWindowSize Size of window (points)
fIntTimeReq Integration time request (s)
bEnableDebug Enable debug?

Definition at line 105 of file SpectDirDipole2.cc.

References bDebug, Decimator, DirResBuf, clSpectDir2::DSP, fFreqRes, fIntTime, fOverlap, fpDirRes, fpLevRes, fpPrevBuf, fpProcBuf, fpRNBuf, fpWinFunc, GCDT, GDT, clSpectDir2::GetArrayFrequency(), lDecimation, LevResBuf, lFFTSize, lFilterSize, lMaxBin, lNewData, lOldData, lSpectSize, PrevBuf, ProcBuf, RNBuf, clSpectDir2::SetSensorSpacing(), clSpectDir2::SetSoundSpeed(), SpectBuf, spSpect, and WinFuncBuf.

clSpectDirDipole2::~clSpectDirDipole2  ) 
 

Definition at line 186 of file SpectDirDipole2.cc.


Member Function Documentation

void clSpectDirDipole2::Calculate int  ,
stpSpectDir2RN 
[private]
 

Definition at line 30 of file SpectDirDipole2.cc.

References BNER, clRemoveNoise::Diff(), clSpectDir2::DSP, _stSpectDir2RN::fAlpha, fFreqRes, fpDirRes, fpLevRes, fpProcBuf, fpRNBuf, fpWinFunc, GCDT, GDT, clSpectDir2::GetDirection(), clRemoveNoise::InvDiff(), _stSpectDir2RN::iType, lFFTSize, _stSpectDir2RN::lGapLength, lMaxBin, _stSpectDir2RN::lMeanLength, lMinBin, lSpectSize, clRemoveNoise::OTA(), SDD2_BNER_DIFF, SDD2_BNER_IDIFF, SDD2_BNER_NONE, SDD2_BNER_OTA, SDD2_BNER_TPSW, SDD2_SCALE_LIN, SDD2_SCALE_LOG, spSpect, and clRemoveNoise::TPSW().

Referenced by GetResults().

void clSpectDirDipole2::PutData const GDT *  ,
long  ,
long  ,
long 
 

Put data into input FIFO.

Parameters:
fpInputData Input data vector
lSampleCount Number of sample in input vector (total)
lStartCh Starting channel index
lChCount Channel count, total

Definition at line 191 of file SpectDirDipole2.cc.

References Decimator, clSpectDir2::DSP, ExtBuf, fpExtBuf, and GDT.

Referenced by clDirection3::ProcessLoop().

bool clSpectDirDipole2::GetResults GDT *  ,
GDT *  ,
GDT  ,
int  ,
stpSpectDir2RN 
 

Get copy of results.

Parameters:
fpLevelResults Levels vector (can be NULL)
fpDirResults Directions vector (can be NULL)
fLowFreqLimit Low frequency limit (Hz)
iScaling Scaling type
spRemoveNoise Noise removal parameters
Returns:
Results available?

Definition at line 208 of file SpectDirDipole2.cc.

References Calculate(), Decimator, clSpectDir2::DSP, fFreqRes, fpDirRes, fpLevRes, fpPrevBuf, fpProcBuf, GDT, lFFTSize, lMaxBin, lMinBin, lNewData, lOldData, and lSpectSize.

Referenced by clDirection3::ProcessLoop().

GDT* clSpectDirDipole2::GetLevels  )  [inline]
 

Get pointer to level results.

Returns:
Pointer to level results

Definition at line 134 of file SpectDirDipole2.hh.

References fpLevRes, and GDT.

Referenced by clDirection3::ProcessLoop().

GDT* clSpectDirDipole2::GetDirections  )  [inline]
 

Get pointer to direction results.

Returns:
Pointer to direction results

Definition at line 140 of file SpectDirDipole2.hh.

References fpDirRes, and GDT.

Referenced by clDirection3::ProcessLoop().

GDT clSpectDirDipole2::GetIntegrationTime  )  [inline]
 

Get integration time (seconds).

Returns:
Integration time (s)

Definition at line 146 of file SpectDirDipole2.hh.

References fIntTime, and GDT.

Referenced by clDirection3::ProcessLoop().

GDT clSpectDirDipole2::GetFreqResolution  )  [inline]
 

Get frequency resolution (Hz).

Returns:
Frequency resolution (Hz)

Definition at line 152 of file SpectDirDipole2.hh.

References fFreqRes, and GDT.

Referenced by clDirection3::ProcessLoop().

long clSpectDirDipole2::GetMinBin  )  [inline]
 

Get minimum used spectrum bin.

Returns:
Index to lowest used bin

Definition at line 158 of file SpectDirDipole2.hh.

References lMinBin.

Referenced by clDirection3::ProcessLoop().

long clSpectDirDipole2::GetMaxBin  )  [inline]
 

Get maximum used spectrum bin.

Returns:
Index to highest used bin

Definition at line 164 of file SpectDirDipole2.hh.

References lMaxBin.

Referenced by clDirection3::ProcessLoop().

long clSpectDirDipole2::GetResultCount  )  [inline]
 

Get result count.

Returns:
Result vector length

Definition at line 170 of file SpectDirDipole2.hh.

References lSpectSize.

Referenced by clDirection3::ProcessLoop().


Member Data Documentation

bool clSpectDirDipole2::bDebug [private]
 

Definition at line 63 of file SpectDirDipole2.hh.

Referenced by clSpectDirDipole2().

long clSpectDirDipole2::lFilterSize [private]
 

Definition at line 64 of file SpectDirDipole2.hh.

Referenced by clSpectDirDipole2().

long clSpectDirDipole2::lFFTSize [private]
 

Definition at line 65 of file SpectDirDipole2.hh.

Referenced by Calculate(), clSpectDirDipole2(), and GetResults().

long clSpectDirDipole2::lDecimation [private]
 

Definition at line 66 of file SpectDirDipole2.hh.

Referenced by clSpectDirDipole2().

long clSpectDirDipole2::lSpectSize [private]
 

Definition at line 67 of file SpectDirDipole2.hh.

Referenced by Calculate(), clSpectDirDipole2(), GetResultCount(), and GetResults().

long clSpectDirDipole2::lMinBin [private]
 

Definition at line 68 of file SpectDirDipole2.hh.

Referenced by Calculate(), GetMinBin(), and GetResults().

long clSpectDirDipole2::lMaxBin [private]
 

Definition at line 69 of file SpectDirDipole2.hh.

Referenced by Calculate(), clSpectDirDipole2(), GetMaxBin(), and GetResults().

long clSpectDirDipole2::lNewData [private]
 

Definition at line 70 of file SpectDirDipole2.hh.

Referenced by clSpectDirDipole2(), and GetResults().

long clSpectDirDipole2::lOldData [private]
 

Definition at line 71 of file SpectDirDipole2.hh.

Referenced by clSpectDirDipole2(), and GetResults().

float clSpectDirDipole2::fOverlap [private]
 

Definition at line 72 of file SpectDirDipole2.hh.

Referenced by clSpectDirDipole2().

GDT clSpectDirDipole2::fFreqRes [private]
 

Definition at line 73 of file SpectDirDipole2.hh.

Referenced by Calculate(), clSpectDirDipole2(), GetFreqResolution(), and GetResults().

GDT clSpectDirDipole2::fIntTime [private]
 

Definition at line 74 of file SpectDirDipole2.hh.

Referenced by clSpectDirDipole2(), and GetIntegrationTime().

GDT* clSpectDirDipole2::fpWinFunc [private]
 

Definition at line 75 of file SpectDirDipole2.hh.

Referenced by Calculate(), and clSpectDirDipole2().

GDT* clSpectDirDipole2::fpLevRes [private]
 

Definition at line 76 of file SpectDirDipole2.hh.

Referenced by Calculate(), clSpectDirDipole2(), GetLevels(), and GetResults().

GDT* clSpectDirDipole2::fpDirRes [private]
 

Definition at line 77 of file SpectDirDipole2.hh.

Referenced by Calculate(), clSpectDirDipole2(), GetDirections(), and GetResults().

GDT* clSpectDirDipole2::fpExtBuf [private]
 

Definition at line 78 of file SpectDirDipole2.hh.

Referenced by PutData().

GDT* clSpectDirDipole2::fpProcBuf[2] [private]
 

Definition at line 79 of file SpectDirDipole2.hh.

Referenced by Calculate(), clSpectDirDipole2(), and GetResults().

GDT* clSpectDirDipole2::fpPrevBuf[2] [private]
 

Definition at line 80 of file SpectDirDipole2.hh.

Referenced by clSpectDirDipole2(), and GetResults().

GDT* clSpectDirDipole2::fpRNBuf[2] [private]
 

Definition at line 81 of file SpectDirDipole2.hh.

Referenced by Calculate(), and clSpectDirDipole2().

GCDT* clSpectDirDipole2::spSpect[2] [private]
 

Definition at line 82 of file SpectDirDipole2.hh.

Referenced by Calculate(), and clSpectDirDipole2().

clDSPAlloc clSpectDirDipole2::WinFuncBuf [private]
 

Definition at line 83 of file SpectDirDipole2.hh.

Referenced by clSpectDirDipole2().

clDSPAlloc clSpectDirDipole2::LevResBuf [private]
 

Definition at line 84 of file SpectDirDipole2.hh.

Referenced by clSpectDirDipole2().

clDSPAlloc clSpectDirDipole2::DirResBuf [private]
 

Definition at line 85 of file SpectDirDipole2.hh.

Referenced by clSpectDirDipole2().

clDSPAlloc clSpectDirDipole2::ExtBuf [private]
 

Definition at line 86 of file SpectDirDipole2.hh.

Referenced by PutData().

clDSPAlloc clSpectDirDipole2::ProcBuf[2] [private]
 

Definition at line 87 of file SpectDirDipole2.hh.

Referenced by clSpectDirDipole2().

clDSPAlloc clSpectDirDipole2::PrevBuf[2] [private]
 

Definition at line 88 of file SpectDirDipole2.hh.

Referenced by clSpectDirDipole2().

clDSPAlloc clSpectDirDipole2::RNBuf[2] [private]
 

Definition at line 89 of file SpectDirDipole2.hh.

Referenced by clSpectDirDipole2().

clDSPAlloc clSpectDirDipole2::SpectBuf[2] [private]
 

Definition at line 90 of file SpectDirDipole2.hh.

Referenced by clSpectDirDipole2().

clRecDecimator clSpectDirDipole2::Decimator[2] [private]
 

Definition at line 91 of file SpectDirDipole2.hh.

Referenced by clSpectDirDipole2(), GetResults(), and PutData().

clRemoveNoise clSpectDirDipole2::BNER [private]
 

Definition at line 92 of file SpectDirDipole2.hh.

Referenced by Calculate().


The documentation for this class was generated from the following files:
Generated on Sun Oct 26 19:12:25 2003 for HASAS by doxygen 1.3.3