Jpp 20.0.0-rc.9-29-gccc23c492-D
the software that should make you happy
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
JACOUSTICS::JMatch3D Class Reference

3D match criterion for acoustic signals. More...

Inheritance diagram for JACOUSTICS::JMatch3D:

Public Member Functions

 JMatch3D (const JAbstractSoundVelocity &V, const double Tmax_s=0.0)
 Constructor.
 
virtual bool operator() (const hit_type &first, const hit_type &second) const override
 Match operator.
 

Public Attributes

const JAbstractSoundVelocityV
 
const double Tmax_s
 

Detailed Description

3D match criterion for acoustic signals.

Definition at line 96 of file JAcousticsTriggerProcessor.cc.

Constructor & Destructor Documentation

◆ JMatch3D()

JACOUSTICS::JMatch3D::JMatch3D ( const JAbstractSoundVelocity & V,
const double Tmax_s = 0.0 )
inline

Constructor.

Parameters
Vsound velocity
Tmax_smaximal extra time [s]

Definition at line 106 of file JAcousticsTriggerProcessor.cc.

106 :
107 V(V),
109 {}
const JAbstractSoundVelocity & V

Member Function Documentation

◆ operator()()

virtual bool JACOUSTICS::JMatch3D::operator() ( const hit_type & first,
const hit_type & second ) const
inlineoverridevirtual

Match operator.

Parameters
firsthit
secondhit
Returns
match result

Definition at line 119 of file JAcousticsTriggerProcessor.cc.

120 {
121 using namespace JPP;
122
123 const double t1 = V.getTime(getDistance(first.getPosition(), second.getPosition()),
124 first .getZ(),
125 second.getZ());
126 const double dt = fabs(first.getToA() - second.getToA());
127
128 return dt <= t1 + Tmax_s;
129 }
virtual double getTime(const double D_m, const double z1, const double z2) const =0
Get propagation time of sound.

Member Data Documentation

◆ V

const JAbstractSoundVelocity& JACOUSTICS::JMatch3D::V

Definition at line 132 of file JAcousticsTriggerProcessor.cc.

◆ Tmax_s

const double JACOUSTICS::JMatch3D::Tmax_s

Definition at line 133 of file JAcousticsTriggerProcessor.cc.


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