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

clArraySensor Class Reference

Class representing sensor in sensor array for frequency domain beamforming. More...

#include <ArraySensor.hh>

List of all members.

Public Member Functions

 clArraySensor ()
 ~clArraySensor ()
void EnableDebug ()
void DisableDebug ()
bool Initialize (GDT, GDT, long)
 Initialize sensor.

void SetSampleRate (GDT)
 Set sample rate.

void SetSoundSpeed (GDT)
 Set sound speed.

void SetArrayFrequency (GDT)
 Set design frequency of array.

void SetShading (GDT)
 Set shading coefficient.

void SetDirection (GDT, bool=true)
 Set direction (in rad).

void Put (const GDT *, long)
 Put sensor data into sensor processor.

bool Get (GDT *, long)
 Get delayed data from the sensor processor.


Protected Member Functions

void SinCosC (float, float *, float *)
void SinCosC (double, double *, double *)

Protected Attributes

bool bDebug
long lWindowSize
 Processing window size.

long lProcCount
 Number of samples per processing.

GDT fPI
GDT fArrayFrequency
 Array frequency.

GDT fSoundSpeed
 Speed of sound.

GDT fSecsPerMeter
 1.0 / soundspeed

GDT fSampleRate
 Samplerate.

GDT fSampleSpacing
 1.0 / samplerate

GDT fFreqResolution
 Frequency resolution.

GDT fShadeCoeff
 Shading coefficient.

GDT fLeftDistance
 Left side sensor distance.

GDT fRightDistance
 Right side sensor distance.

GDT fLeftTime
 Left side sensor delay.

GDT fRightTime
 Right side sensor delay.

GDT fDirection
 Beam direction for delay.

clDSPOp DSP
clFilter Filter
clDSPVector< GDT > dspvInData
clDSPVector< GDT > dspvProcData
clDSPVector< GDT > dspvOutData


Detailed Description

Class representing sensor in sensor array for frequency domain beamforming.

Definition at line 38 of file ArraySensor.hh.


Constructor & Destructor Documentation

clArraySensor::clArraySensor  ) 
 

Definition at line 56 of file ArraySensor.cc.

References bDebug, fPI, and fShadeCoeff.

clArraySensor::~clArraySensor  )  [inline]
 

Definition at line 66 of file ArraySensor.hh.


Member Function Documentation

void clArraySensor::SinCosC float  ,
float *  ,
float * 
[inline, protected]
 

Definition at line 30 of file ArraySensor.cc.

Referenced by SetDirection().

void clArraySensor::SinCosC double  ,
double *  ,
double * 
[inline, protected]
 

Definition at line 43 of file ArraySensor.cc.

void clArraySensor::EnableDebug  )  [inline]
 

Definition at line 67 of file ArraySensor.hh.

References bDebug.

Referenced by clFreqBeamDipole::SetDebug().

void clArraySensor::DisableDebug  )  [inline]
 

Definition at line 68 of file ArraySensor.hh.

References bDebug.

Referenced by clFreqBeamDipole::SetDebug().

bool clArraySensor::Initialize GDT  ,
GDT  ,
long 
 

Initialize sensor.

Frequency resolution is $\frac{f_{Nyquist}}{N+1}$.

Parameters:
fLDistance Left side sensor distance to end of the array (m)
fRDistance Right side sensor distance to end of the array (m)
lWinSize Processing window size
Returns:
Success

Definition at line 64 of file ArraySensor.cc.

References bDebug, dspvProcData, Filter, fLeftDistance, fRightDistance, GDT, lProcCount, and lWindowSize.

Referenced by clFreqBeamLine::Initialize(), and clFreqBeamDipole::Initialize().

void clArraySensor::SetSampleRate GDT   ) 
 

Set sample rate.

\[\Delta{t_s}=\frac{1}{f_s}\]

Parameters:
fFs Samplerate

Definition at line 87 of file ArraySensor.cc.

References bDebug, fFreqResolution, fSampleRate, fSampleSpacing, GDT, and lWindowSize.

Referenced by clFreqBeamLine::Initialize(), and clFreqBeamDipole::Initialize().

void clArraySensor::SetSoundSpeed GDT   ) 
 

Set sound speed.

\[c^{-1}=\frac{1}{c}\]

Parameters:
fSndSpeed Speed of sound in m/s

Definition at line 101 of file ArraySensor.cc.

References bDebug, fLeftDistance, fLeftTime, fRightDistance, fRightTime, fSecsPerMeter, fSoundSpeed, and GDT.

Referenced by clFreqBeamDipole::SetSoundSpeed().

void clArraySensor::SetArrayFrequency GDT   ) 
 

Set design frequency of array.

$\lambda/2$

Parameters:
fFa Array frequency (Hz)

Definition at line 116 of file ArraySensor.cc.

References bDebug, and fArrayFrequency.

Referenced by clFreqBeamDipole::SetSoundSpeed().

void clArraySensor::SetShading GDT   ) 
 

Set shading coefficient.

Parameters:
fCoeff Shading coefficient

Definition at line 123 of file ArraySensor.cc.

References bDebug, and fShadeCoeff.

Referenced by clFreqBeamLine::Initialize().

void clArraySensor::SetDirection GDT  ,
bool  = true
 

Set direction (in rad).

\[\varphi_{f}=\sin(\theta)\pi\left(\frac{\frac{1}{c}d}{\frac{1}{2f}}\right)\]

\[C_{f}=\cos(\varphi_{f})+j\sin(\varphi_{f})\]

Parameters:
fDir Direction
bLowPass Low pass filter at array frequency

Definition at line 130 of file ArraySensor.cc.

References bDebug, fArrayFrequency, fFreqResolution, Filter, fLeftTime, fPI, fRightTime, GDT, lWindowSize, and SinCosC().

Referenced by clFreqBeamDipole::SetDirection().

void clArraySensor::Put const GDT *  ,
long 
 

Put sensor data into sensor processor.

Parameters:
fpSrc Source vector
lSrcCount Number of samples in source vector

Definition at line 172 of file ArraySensor.cc.

References dspvInData, dspvOutData, dspvProcData, Filter, and fShadeCoeff.

Referenced by clFreqBeamDipole::Put().

bool clArraySensor::Get GDT *  ,
long 
 

Get delayed data from the sensor processor.

Parameters:
fpDest Destination vector
lDestCount Number of samples to put into destination vector
Returns:
Success

Definition at line 187 of file ArraySensor.cc.

References dspvOutData.

Referenced by clFreqBeamDipole::Get().


Member Data Documentation

bool clArraySensor::bDebug [protected]
 

Definition at line 41 of file ArraySensor.hh.

Referenced by clArraySensor(), DisableDebug(), EnableDebug(), Initialize(), SetArrayFrequency(), SetDirection(), SetSampleRate(), SetShading(), and SetSoundSpeed().

long clArraySensor::lWindowSize [protected]
 

Processing window size.

Definition at line 42 of file ArraySensor.hh.

Referenced by Initialize(), SetDirection(), and SetSampleRate().

long clArraySensor::lProcCount [protected]
 

Number of samples per processing.

Definition at line 43 of file ArraySensor.hh.

Referenced by Initialize().

GDT clArraySensor::fPI [protected]
 

Definition at line 44 of file ArraySensor.hh.

Referenced by clArraySensor(), and SetDirection().

GDT clArraySensor::fArrayFrequency [protected]
 

Array frequency.

Definition at line 45 of file ArraySensor.hh.

Referenced by SetArrayFrequency(), and SetDirection().

GDT clArraySensor::fSoundSpeed [protected]
 

Speed of sound.

Definition at line 46 of file ArraySensor.hh.

Referenced by SetSoundSpeed().

GDT clArraySensor::fSecsPerMeter [protected]
 

1.0 / soundspeed

Definition at line 47 of file ArraySensor.hh.

Referenced by SetSoundSpeed().

GDT clArraySensor::fSampleRate [protected]
 

Samplerate.

Definition at line 48 of file ArraySensor.hh.

Referenced by SetSampleRate().

GDT clArraySensor::fSampleSpacing [protected]
 

1.0 / samplerate

Definition at line 49 of file ArraySensor.hh.

Referenced by SetSampleRate().

GDT clArraySensor::fFreqResolution [protected]
 

Frequency resolution.

Definition at line 50 of file ArraySensor.hh.

Referenced by SetDirection(), and SetSampleRate().

GDT clArraySensor::fShadeCoeff [protected]
 

Shading coefficient.

Definition at line 51 of file ArraySensor.hh.

Referenced by clArraySensor(), Put(), and SetShading().

GDT clArraySensor::fLeftDistance [protected]
 

Left side sensor distance.

Definition at line 52 of file ArraySensor.hh.

Referenced by Initialize(), and SetSoundSpeed().

GDT clArraySensor::fRightDistance [protected]
 

Right side sensor distance.

Definition at line 53 of file ArraySensor.hh.

Referenced by Initialize(), and SetSoundSpeed().

GDT clArraySensor::fLeftTime [protected]
 

Left side sensor delay.

Definition at line 54 of file ArraySensor.hh.

Referenced by SetDirection(), and SetSoundSpeed().

GDT clArraySensor::fRightTime [protected]
 

Right side sensor delay.

Definition at line 55 of file ArraySensor.hh.

Referenced by SetDirection(), and SetSoundSpeed().

GDT clArraySensor::fDirection [protected]
 

Beam direction for delay.

Definition at line 56 of file ArraySensor.hh.

clDSPOp clArraySensor::DSP [protected]
 

Definition at line 57 of file ArraySensor.hh.

clFilter clArraySensor::Filter [protected]
 

Definition at line 58 of file ArraySensor.hh.

Referenced by Initialize(), Put(), and SetDirection().

clDSPVector<GDT> clArraySensor::dspvInData [protected]
 

Definition at line 59 of file ArraySensor.hh.

Referenced by Put().

clDSPVector<GDT> clArraySensor::dspvProcData [protected]
 

Definition at line 60 of file ArraySensor.hh.

Referenced by Initialize(), and Put().

clDSPVector<GDT> clArraySensor::dspvOutData [protected]
 

Definition at line 61 of file ArraySensor.hh.

Referenced by Get(), and Put().


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