Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
I
ITAPropagationModels
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
ITAPropagationModels
Commits
d56670a8
Commit
d56670a8
authored
Dec 17, 2018
by
Armin Erraji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed speed of sound value 344.0f to ITAConstants::SPEED_OF_SOUND_F.
parent
8eb40b23
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
+8
-8
benchmarks/DiffractionModelsBenchmark.cpp
benchmarks/DiffractionModelsBenchmark.cpp
+1
-1
include/ITAPropagationModels/FilterEngine.h
include/ITAPropagationModels/FilterEngine.h
+1
-1
include/ITAPropagationModels/Svensson.h
include/ITAPropagationModels/Svensson.h
+1
-1
include/ITAPropagationModels/UTD.h
include/ITAPropagationModels/UTD.h
+1
-1
src/ITAPropagationModels/Svensson.cpp
src/ITAPropagationModels/Svensson.cpp
+1
-1
src/ITAPropagationModels/UTD.cpp
src/ITAPropagationModels/UTD.cpp
+1
-1
tests/Svensson/SvenssonTest.cpp
tests/Svensson/SvenssonTest.cpp
+1
-1
tests/UTD/UTDTest.cpp
tests/UTD/UTDTest.cpp
+1
-1
No files found.
benchmarks/DiffractionModelsBenchmark.cpp
View file @
d56670a8
...
...
@@ -47,7 +47,7 @@
using
namespace
std
;
using
namespace
ITAPropagationModels
;
float
g_fSpeedOfSound
=
344.0
f
;
float
g_fSpeedOfSound
=
ITAConstants
::
SPEED_OF_SOUND_F
;
float
g_fSampleRate
=
44.1e3
;
int
g_iFilterLength
=
64
;
...
...
include/ITAPropagationModels/FilterEngine.h
View file @
d56670a8
...
...
@@ -132,7 +132,7 @@ namespace ITAPropagationModels
const
double
m_dHumidity
=
80.0
;
const
double
m_dTemperature
=
20.0
;
const
float
m_fSpeedOfSound
=
344.0
f
;
const
float
m_fSpeedOfSound
=
ITAConstants
::
SPEED_OF_SOUND_F
;
static
struct
m_DefaultDiffractionModel
//!< Default values for diffractions
...
...
include/ITAPropagationModels/Svensson.h
View file @
d56670a8
...
...
@@ -49,7 +49,7 @@ namespace ITAPropagationModels
*
* @sa GetMinimumWavefrontDelayTime, GetMaximumWavefrontDelayTime
*/
ITA_PROPAGATION_MODELS_API
bool
CalculateDiffractionIR
(
const
VistaVector3D
&
v3SourcePos
,
const
VistaVector3D
&
v3TargetPos
,
std
::
shared_ptr
<
const
ITAGeo
::
CITADiffractionWedgeAperture
>
pApex
,
ITABase
::
CFiniteImpulseResponse
&
oEffectiveDiffractionIR
,
const
float
fSpeedOfSound
=
344.0
f
);
ITA_PROPAGATION_MODELS_API
bool
CalculateDiffractionIR
(
const
VistaVector3D
&
v3SourcePos
,
const
VistaVector3D
&
v3TargetPos
,
std
::
shared_ptr
<
const
ITAGeo
::
CITADiffractionWedgeAperture
>
pApex
,
ITABase
::
CFiniteImpulseResponse
&
oEffectiveDiffractionIR
,
const
float
fSpeedOfSound
=
ITAConstants
::
SPEED_OF_SOUND_F
);
}
}
...
...
include/ITAPropagationModels/UTD.h
View file @
d56670a8
...
...
@@ -78,7 +78,7 @@ namespace ITAPropagationModels
* @param[in] iMethod Approximation algorithm
* @param[in] fSpeedOfSound Sound speed
*/
ITA_PROPAGATION_MODELS_API
void
CalculateDiffractionFilter
(
const
VistaVector3D
&
v3SourcePos
,
const
VistaVector3D
&
v3TargetPos
,
std
::
shared_ptr
<
const
ITAGeo
::
CITADiffractionWedgeAperture
>
pApex
,
ITABase
::
CHDFTSpectrum
&
oTF
,
const
int
iMethod
=
UTD_APPROX_KAWAI_KOUYOUMJIAN
,
const
float
fSpeedOfSound
=
344.0
f
);
ITA_PROPAGATION_MODELS_API
void
CalculateDiffractionFilter
(
const
VistaVector3D
&
v3SourcePos
,
const
VistaVector3D
&
v3TargetPos
,
std
::
shared_ptr
<
const
ITAGeo
::
CITADiffractionWedgeAperture
>
pApex
,
ITABase
::
CHDFTSpectrum
&
oTF
,
const
int
iMethod
=
UTD_APPROX_KAWAI_KOUYOUMJIAN
,
const
float
fSpeedOfSound
=
ITAConstants
::
SPEED_OF_SOUND_F
);
}
}
...
...
src/ITAPropagationModels/Svensson.cpp
View file @
d56670a8
...
...
@@ -24,7 +24,7 @@ float SvenssonHelperBeta( const float nu, const float theta_s, const float theta
//! Plus-minus variant for beta values in geometrical functions
float
SvenssonHelperBetaEval
(
const
float
nu
,
const
float
alpha
,
const
float
gamma
,
const
float
fPMVariant
);
bool
Svensson
::
CalculateDiffractionIR
(
const
VistaVector3D
&
v3SourcePos
,
const
VistaVector3D
&
v3TargetPos
,
std
::
shared_ptr
<
const
ITAGeo
::
CITADiffractionWedgeAperture
>
pApex
,
ITABase
::
CFiniteImpulseResponse
&
oEffectiveDiffractionIR
,
const
float
fSpeedOfSound
/* =
344.0f
*/
)
bool
Svensson
::
CalculateDiffractionIR
(
const
VistaVector3D
&
v3SourcePos
,
const
VistaVector3D
&
v3TargetPos
,
std
::
shared_ptr
<
const
ITAGeo
::
CITADiffractionWedgeAperture
>
pApex
,
ITABase
::
CFiniteImpulseResponse
&
oEffectiveDiffractionIR
,
const
float
fSpeedOfSound
/* =
ITAConstants::SPEED_OF_SOUND_F
*/
)
{
if
(
fSpeedOfSound
<=
0.0
f
)
ITA_EXCEPT_INVALID_PARAMETER
(
"Speed of sound must be greate zero"
);
...
...
src/ITAPropagationModels/UTD.cpp
View file @
d56670a8
...
...
@@ -30,7 +30,7 @@ float UTDHelperFunction_a_plus( const float fBeta, const float n );
float
UTDHelperFunction_a_minus
(
const
float
fBeta
,
const
float
n
);
void
UTD
::
CalculateDiffractionFilter
(
const
VistaVector3D
&
v3SourcePos
,
const
VistaVector3D
&
v3TargetPos
,
std
::
shared_ptr
<
const
ITAGeo
::
CITADiffractionWedgeAperture
>
pApex
,
ITABase
::
CHDFTSpectrum
&
oTF
,
const
int
iMethod
/* = UTD_APPROX_KAWAI_KOUYOUMJIAN */
,
const
float
fSpeedOfSound
/* =
344.0f
*/
)
void
UTD
::
CalculateDiffractionFilter
(
const
VistaVector3D
&
v3SourcePos
,
const
VistaVector3D
&
v3TargetPos
,
std
::
shared_ptr
<
const
ITAGeo
::
CITADiffractionWedgeAperture
>
pApex
,
ITABase
::
CHDFTSpectrum
&
oTF
,
const
int
iMethod
/* = UTD_APPROX_KAWAI_KOUYOUMJIAN */
,
const
float
fSpeedOfSound
/* =
ITAConstants::SPEED_OF_SOUND_F
*/
)
{
std
::
complex
<
float
>
cfCoeff
;
oTF
.
SetCoeffRI
(
0
,
1.0
f
,
0.0
f
);
// DC
...
...
tests/Svensson/SvenssonTest.cpp
View file @
d56670a8
...
...
@@ -37,7 +37,7 @@ using namespace ITAGeo;
using
namespace
ITAPropagationModels
;
static
const
float
g_fSampleRate
=
44.1e3
f
;
static
const
float
g_fSpeedOfSound
=
344.0
f
;
static
const
float
g_fSpeedOfSound
=
ITAConstants
::
SPEED_OF_SOUND_F
;
//! Tests running the Svensson model functions
/**
...
...
tests/UTD/UTDTest.cpp
View file @
d56670a8
...
...
@@ -36,7 +36,7 @@ using namespace ITAPropagationModels;
static
const
float
g_fSampleRate
=
44.1e3
f
;
static
const
int
g_iFilterLength
=
128
;
static
const
float
g_fSpeedOfSound
=
344.0
f
;
static
const
float
g_fSpeedOfSound
=
ITAConstants
::
SPEED_OF_SOUND_F
;
//! Tests running the UTD model functions
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment