Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JACOUSTICS::JMatch1D Class Reference

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

Inheritance diagram for JACOUSTICS::JMatch1D:
JLANG::JClonable< JClonable_t, JDerived_t >

Public Types

typedef JClonable< JClonable_t >::clone_type clone_type
 

Public Member Functions

 JMatch1D (const double V, const double Rmax_m, const double Zmax_m, const double Tmax_s)
 Constructor.
 
virtual bool operator() (const hit_type &first, const hit_type &second) const override
 Match operator.
 
virtual clone_type clone () const override
 Get clone of this object.
 

Private Attributes

const double V
 
const double Rmax_m
 
const double Zmax_m
 
const double Tmax_s
 

Detailed Description

1D match criterion for acoustic signals.

Definition at line 141 of file JBillabong.cc.

Member Typedef Documentation

◆ clone_type

template<class JClonable_t , class JDerived_t >
JClonable<JClonable_t>::clone_type JLANG::JClonable< JClonable_t, JDerived_t >::clone_type
inherited

Definition at line 61 of file JClonable.hh.

Constructor & Destructor Documentation

◆ JMatch1D()

JACOUSTICS::JMatch1D::JMatch1D ( const double V,
const double Rmax_m,
const double Zmax_m,
const double Tmax_s )
inline

Constructor.

Parameters
Vsound velocity [m/s]
Rmax_mmaximal radial distance [m]
Zmax_mmaximal vertical distance [m]
Tmax_smaximal extra time [s]

Definition at line 153 of file JBillabong.cc.

153 :
154 V(V),
155 Rmax_m(Rmax_m),
156 Zmax_m(Zmax_m),
158 {}
const double Tmax_s
const double Zmax_m
const double Rmax_m

Member Function Documentation

◆ operator()()

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

Match operator.

Parameters
firsthit
secondhit
Returns
match result

Definition at line 168 of file JBillabong.cc.

169 {
170 /*
171 const double x = first.getX() - second.getX();
172 const double y = first.getY() - second.getY();
173 const double z = first.getZ() - second.getZ();
174
175 if (fabs(z) <= Zmax_m) {
176
177 const double R = sqrt(x*x + y*y);
178
179 if (R <= Rmax_m) {
180 return fabs(first.getToA() - second.getToA()) <= sqrt(R*R + z*z) / V + Tmax_s;
181 }
182 }
183
184 return false;
185 */
186 return fabs(first.getZ() - second.getZ()) <= Zmax_m;
187 }
double getZ() const
Get z position.
Definition JVector3D.hh:115

◆ clone()

template<class JClonable_t , class JDerived_t >
virtual clone_type JLANG::JClonable< JClonable_t, JDerived_t >::clone ( ) const
inlineoverridevirtualinherited

Member Data Documentation

◆ V

const double JACOUSTICS::JMatch1D::V
private

Definition at line 190 of file JBillabong.cc.

◆ Rmax_m

const double JACOUSTICS::JMatch1D::Rmax_m
private

Definition at line 191 of file JBillabong.cc.

◆ Zmax_m

const double JACOUSTICS::JMatch1D::Zmax_m
private

Definition at line 192 of file JBillabong.cc.

◆ Tmax_s

const double JACOUSTICS::JMatch1D::Tmax_s
private

Definition at line 193 of file JBillabong.cc.


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