Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
ITABase
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
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
ITABase
Commits
6dc041dc
Commit
6dc041dc
authored
May 15, 2018
by
Dipl.-Ing. Jonas Stienen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.rwth-aachen.de/ita/ITABase
parents
cf72a9c1
40cb5a3b
Changes
60
Hide whitespace changes
Inline
Side-by-side
Showing
60 changed files
with
247 additions
and
165 deletions
+247
-165
CMakeLists.txt
CMakeLists.txt
+4
-1
include/ITAASCIITable.h
include/ITAASCIITable.h
+1
-1
include/ITAAtomicOps.h
include/ITAAtomicOps.h
+1
-1
include/ITAAtomicPrimitives.h
include/ITAAtomicPrimitives.h
+1
-1
include/ITAAudioSample.h
include/ITAAudioSample.h
+1
-1
include/ITAAudiofileCommon.h
include/ITAAudiofileCommon.h
+3
-1
include/ITAAudiofileReader.h
include/ITAAudiofileReader.h
+1
-1
include/ITAAudiofileWriter.h
include/ITAAudiofileWriter.h
+1
-1
include/ITABaseDefinitions.h
include/ITABaseDefinitions.h
+1
-1
include/ITABlockMath.h
include/ITABlockMath.h
+1
-1
include/ITABufferedAudioFileWriter.h
include/ITABufferedAudioFileWriter.h
+1
-1
include/ITAClock.h
include/ITAClock.h
+1
-1
include/ITAConfigUtils.h
include/ITAConfigUtils.h
+2
-2
include/ITAConstants.h
include/ITAConstants.h
+1
-1
include/ITACriticalSection.h
include/ITACriticalSection.h
+1
-1
include/ITADataLog.h
include/ITADataLog.h
+1
-1
include/ITADebug.h
include/ITADebug.h
+1
-1
include/ITAEndianness.h
include/ITAEndianness.h
+1
-1
include/ITAException.h
include/ITAException.h
+1
-1
include/ITAFade.h
include/ITAFade.h
+1
-1
include/ITAFastMath.h
include/ITAFastMath.h
+1
-1
include/ITAFileSystemUtils.h
include/ITAFileSystemUtils.h
+1
-1
include/ITAFiniteImpulseResponse.h
include/ITAFiniteImpulseResponse.h
+1
-1
include/ITAFunctors.h
include/ITAFunctors.h
+1
-1
include/ITAHDFTSpectra.h
include/ITAHDFTSpectra.h
+1
-1
include/ITAHDFTSpectrum.h
include/ITAHDFTSpectrum.h
+1
-1
include/ITAHPT.h
include/ITAHPT.h
+1
-1
include/ITAInterpolation.h
include/ITAInterpolation.h
+1
-1
include/ITALog.h
include/ITALog.h
+1
-1
include/ITAMagnitudeSpectrum.h
include/ITAMagnitudeSpectrum.h
+1
-1
include/ITAMultichannelFiniteImpulseResponse.h
include/ITAMultichannelFiniteImpulseResponse.h
+1
-1
include/ITAMutex.h
include/ITAMutex.h
+1
-1
include/ITANumericUtils.h
include/ITANumericUtils.h
+37
-30
include/ITAOps.h
include/ITAOps.h
+1
-1
include/ITASampleBuffer.h
include/ITASampleBuffer.h
+1
-1
include/ITASampleFrame.h
include/ITASampleFrame.h
+1
-1
include/ITASampleTypeConversion.h
include/ITASampleTypeConversion.h
+1
-1
include/ITASimpleConvolution.h
include/ITASimpleConvolution.h
+1
-1
include/ITASpectrum.h
include/ITASpectrum.h
+1
-1
include/ITAStopWatch.h
include/ITAStopWatch.h
+1
-1
include/ITAStringUtils.h
include/ITAStringUtils.h
+1
-1
include/ITAThirdOctaveMagnitudeSpectrum.h
include/ITAThirdOctaveMagnitudeSpectrum.h
+1
-1
include/ITATimeSeriesAnalyzer.h
include/ITATimeSeriesAnalyzer.h
+1
-1
include/ITATimer.h
include/ITATimer.h
+1
-1
include/ITATypes.h
include/ITATypes.h
+1
-1
include/ITAUncopyable.h
include/ITAUncopyable.h
+1
-1
include/ITAWholeOctaveMagnitudeSpectrum.h
include/ITAWholeOctaveMagnitudeSpectrum.h
+1
-1
include/ITAWinPCClock.h
include/ITAWinPCClock.h
+1
-1
src/ITAAudioSample.cpp
src/ITAAudioSample.cpp
+1
-1
src/ITAConfigUtilsSimpleIniImpl.cpp
src/ITAConfigUtilsSimpleIniImpl.cpp
+0
-18
src/ITAHDFTSpectrum.cpp
src/ITAHDFTSpectrum.cpp
+6
-5
src/ITAInterpolation.cpp
src/ITAInterpolation.cpp
+15
-11
src/ITANumericUtils.cpp
src/ITANumericUtils.cpp
+77
-21
src/ITAPosixRealtimeClock.cpp
src/ITAPosixRealtimeClock.cpp
+0
-2
src/ITAStringUtils.cpp
src/ITAStringUtils.cpp
+0
-2
src/ITAStringUtilsPCRE.cpp
src/ITAStringUtilsPCRE.cpp
+15
-9
tests/CMakeLists.txt
tests/CMakeLists.txt
+9
-0
tests/ITABaseSampleBufferTest.cpp
tests/ITABaseSampleBufferTest.cpp
+16
-17
tests/ITAStringUtilsTest.cpp
tests/ITAStringUtilsTest.cpp
+15
-0
tests/VistaTests/CMakeLists.txt
tests/VistaTests/CMakeLists.txt
+3
-1
No files found.
CMakeLists.txt
View file @
6dc041dc
...
...
@@ -21,7 +21,7 @@ endif ()
if
(
NOT DEFINED ITA_BASE_WITH_FASTMATH_IPP
)
set
(
ITA_BASE_WITH_FASTMATH_IPP OFF CACHE BOOL
"Build with IPP implementation of fast math ops"
)
set
(
ITA_BASE_WITH_FASTMATH_IPP OFF CACHE BOOL
"Build with IPP implementation of fast math ops
(requires license for redistribution)
"
)
endif
(
)
if
(
NOT DEFINED ITA_BASE_WITH_FASTMATH_ASSEMBLER
)
...
...
@@ -214,6 +214,9 @@ endif( )
if
(
ITA_VISTA_BUILD_STATIC
)
add_definitions
(
-DVISTABASE_STATIC -DVISTAMATH_STATIC -DVISTAASPECTS_STATIC -DVISTATOOLS_STATIC -DVISTAINTERPROCCOMM_STATIC
)
if
(
WIN32
)
list
(
APPEND VISTA_USE_PACKAGE_LIBRARIES Ws2_32
)
endif
(
)
endif
(
)
if
(
NOT WIN32
)
...
...
include/ITAASCIITable.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAAtomicOps.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAAtomicPrimitives.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAAudioSample.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAAudiofileCommon.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
@@ -35,6 +35,8 @@ struct ITA_BASE_API ITAAudiofileProperties
iLength
=
-
1
;
};
inline
~
ITAAudiofileProperties
()
{};
ITAQuantization
eQuantization
;
ITADomain
eDomain
;
int
iChannels
;
...
...
include/ITAAudiofileReader.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAAudiofileWriter.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITABaseDefinitions.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITABlockMath.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITABufferedAudioFileWriter.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAClock.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAConfigUtils.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
@@ -116,7 +116,7 @@ ITA_BASE_API void INIFileRequireNonemptyKey(const std::string& sINIFilename,
* | Diese Funktionen lsen Ausnahmen aus falls: |
* | |
* | - die INI-Datei nicht existiert |
* | - der Wert nicht als gewnschter Datentyp interpretierbar ist. |
|
* | - der Wert nicht als gewnschter Datentyp interpretierbar ist. |
* | |
* +----------------------------------------------------------------------------------------------+ */
...
...
include/ITAConstants.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITACriticalSection.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITADataLog.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITADebug.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAEndianness.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAException.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAFade.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAFastMath.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAFileSystemUtils.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAFiniteImpulseResponse.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAFunctors.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAHDFTSpectra.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAHDFTSpectrum.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAHPT.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAInterpolation.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITALog.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAMagnitudeSpectrum.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAMultichannelFiniteImpulseResponse.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAMutex.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITANumericUtils.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
@@ -45,6 +45,7 @@ ITA_BASE_API bool isPow2( unsigned int x );
ITA_BASE_API
unsigned
int
nextPow2
(
unsigned
int
x
);
// Rundung auf Compilern definieren die dies nicht standardmäßig mitliefern
// not so nice!! consider namespacing this very typical function names
#ifndef HAVE_ROUND
ITA_BASE_API
inline
double
round
(
double
x
)
...
...
@@ -288,6 +289,9 @@ ITA_BASE_API float anglef_proj_0_360_DEG( const float alpha );
*/
ITA_BASE_API
float
anglef_proj_N180_180_DEG
(
const
float
alpha
);
//! Project an angle into interval of -90 and 90 degree
ITA_BASE_API
float
anglef_proj_N90_90_DEG
(
const
float
alpha
);
//! (Gerichtete) minimale Winkeldifferenz für zwei Winkel [°] im Intervall [0°,360°)
/**
* Für zwei gegebene Winkel 0°<= alpha, beta < 360° im Interval [0°,360°) berechnet
...
...
@@ -324,27 +328,21 @@ ITA_BASE_API float anglef_mindiff_0_360_DEG( const float alpha, const float beta
ITA_BASE_API
float
anglef_mindiff_abs_0_360_DEG
(
const
float
alpha
,
const
float
beta
);
// Orientierung in Yaw-Pitch-Roll Winkeln in View-Up-Vektor umrechnen (Alle Winkel in Bogenmaß)
ITA_BASE_API
void
convertYPR2VU
(
const
double
yaw
,
const
double
pitch
,
const
double
roll
,
double
&
vx
,
double
&
vy
,
double
&
vz
,
double
&
ux
,
double
&
uy
,
double
&
uz
);
//! Orientierung in Yaw-Pitch-Roll Winkeln in View-Up-Vektor umrechnen (Alle Winkel in Bogenmaß)
ITA_BASE_API
void
convertYPR2VU
(
const
double
yaw
,
const
double
pitch
,
const
double
roll
,
double
&
vx
,
double
&
vy
,
double
&
vz
,
double
&
ux
,
double
&
uy
,
double
&
uz
);
// Orientierung in Yaw-Pitch-Roll Winkeln in View-Up-Vektor umrechnen (Alle Winkel in Bogenmaß)
ITA_BASE_API
void
convertYPR2VU
(
const
float
yaw
,
const
float
pitch
,
const
float
roll
,
float
&
vx
,
float
&
vy
,
float
&
vz
,
float
&
ux
,
float
&
uy
,
float
&
uz
);
//! Orientierung in Yaw-Pitch-Roll Winkeln in View-Up-Vektor umrechnen (Alle Winkel in Bogenmaß)
ITA_BASE_API
void
convertYPR2VU
(
const
float
yaw
,
const
float
pitch
,
const
float
roll
,
float
&
vx
,
float
&
vy
,
float
&
vz
,
float
&
ux
,
float
&
uy
,
float
&
uz
);
// Orientierung in View-Up-Vektor in Yaw-Pitch-Roll Winkeln umrechnen (Alle Winkel in Bogenmaß)
ITA_BASE_API
void
convertVU2YPR
(
const
double
vx
,
const
double
vy
,
const
double
vz
,
const
double
ux
,
const
double
uy
,
const
double
uz
,
double
&
yaw
,
double
&
pitch
,
double
&
roll
);
// Orientierung in View-Up-Vektor in Yaw-Pitch-Roll Winkeln umrechnen (Alle Winkel in Bogenmaß)
ITA_BASE_API
void
convertVU2YPR
(
const
float
vx
,
const
float
vy
,
const
float
vz
,
const
float
ux
,
const
float
uy
,
const
float
uz
,
float
&
yaw
,
float
&
pitch
,
float
&
roll
);
//! Orientierung in View-Up-Vektor in Yaw-Pitch-Roll Winkeln umrechnen (Alle Winkel in Bogenmaß)
ITA_BASE_API
void
convertVU2YPR
(
const
float
vx
,
const
float
vy
,
const
float
vz
,
const
float
ux
,
const
float
uy
,
const
float
uz
,
float
&
yaw
,
float
&
pitch
,
float
&
roll
);
// Datenklasse für Fehlerwerte
//
!
Datenklasse für Fehlerwerte
template
<
typename
T
>
class
ITA_BASE_API
ErrorValues
{
...
...
@@ -363,7 +361,7 @@ public:
{};
};
// Fehler zwischen zwei Vektoren berechnen
//
!
Fehler zwischen zwei Vektoren berechnen
template
<
typename
Tc
,
typename
Ta
,
typename
Tb
>
inline
ErrorValues
<
Tc
>
computeErrorValues
(
const
Ta
*
A
,
const
Tb
*
B
,
const
int
size
)
{
...
...
@@ -391,13 +389,8 @@ inline ErrorValues<Tc> computeErrorValues( const Ta* A, const Tb* B, const int s
return
v
;
};
/* +-----------------------+
| |
| Listen und Folgen |
| |
+-----------------------+ */
// Fills a vector with numbers dest = { a+n*s < b | n in N }
//
!
Fills a vector with numbers dest = { a+n*s < b | n in N }
template
<
typename
T
>
inline
void
linspace
(
std
::
vector
<
T
>&
dest
,
T
a
,
T
b
,
T
s
=
1
)
{
dest
.
clear
();
...
...
@@ -425,26 +418,40 @@ template< typename T > inline void linspace( std::vector< T >& dest, T a, T b, T
}
};
// Fills a vector with powers of two in the range a=2^i <= 2^j <= 2^k=b
// (Note a and b must be powers of two, otherwise an exception is thrown)
//! Fills a vector with powers of two in the range a=2^i <= 2^j <= 2^k=b
/**
* @note a and b must be powers of two, otherwise an exception is thrown)
*/
ITA_BASE_API
void
pow2space
(
std
::
vector
<
int
>&
dest
,
const
int
a
,
const
int
b
);
//! Returns the elevation angle (0 = frontal direction) in radians from a polar angle theta (0 = above)
ITA_BASE_API
double
theta2elevation
(
const
double
dThetaRAD
);
//! returns the polar angle theta (0 = above) in radians from a given elevation angle (0 = frontal direction)
ITA_BASE_API
double
elevation2theta
(
const
double
dElevationRAD
);
// Calculates the factorial of an positive integer m
ITA_BASE_API
int
factorial
(
const
int
m
);
//Calculates the normalizing constant for SHRealvaluedBasefunctions
//
!
Calculates the normalizing constant for SHRealvaluedBasefunctions
ITA_BASE_API
double
SHNormalizeConst
(
const
int
m
,
const
int
n
);
//Calculates the Kronecker delta
//
!
Calculates the Kronecker delta
ITA_BASE_API
int
SHKronecker
(
const
int
m
);
//
Returns the index of a basefunction with degree m and order n
//
! Returns the linear index of a basefunction with degree m and order n, linear indexing starts with 0
ITA_BASE_API
int
SHDegreeOrder2Linear
(
const
int
m
,
const
int
n
);
//Calculates the realvalued Basefunctions of SH for e.g. Ambisonics
ITA_BASE_API
std
::
vector
<
double
>
SHRealvaluedBasefunctions
(
const
double
elevation
,
const
double
azimuth
,
const
int
maxOrder
);
//! Returns degree and order of a basefunctions from a linear index, linear indexing starts with 0
ITA_BASE_API
void
SHLinear2DegreeOrder
(
const
int
iLinear
,
int
&
m
,
int
&
n
);
//! Calculates the remax weightings up to a given order
ITA_BASE_API
std
::
vector
<
double
>
HOARemaxWeights
(
int
iTruncationOrder
);
//! Calculates the realvalued Basefunctions of SH for e.g. Ambisonics
ITA_BASE_API
std
::
vector
<
double
>
SHRealvaluedBasefunctions
(
const
double
thetaRAD
,
const
double
azimuthRAD
,
const
int
maxOrder
);
//Calculates the associated legendre polynomials
ITA_BASE_API
std
::
vector
<
double
>
SHAssociatedLegendre
(
const
int
N
,
const
double
mu
);
//
!
Calculates the associated legendre polynomials
ITA_BASE_API
std
::
vector
<
double
>
SHAssociatedLegendre
(
const
int
N
,
const
double
mu
);
#endif // INCLUDE_WATCHER_ITA_NUMERIC_UTILS
include/ITAOps.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITASampleBuffer.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITASampleFrame.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITASampleTypeConversion.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITASimpleConvolution.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITASpectrum.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAStopWatch.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAStringUtils.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAThirdOctaveMagnitudeSpectrum.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITATimeSeriesAnalyzer.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITATimer.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITATypes.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAUncopyable.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAWholeOctaveMagnitudeSpectrum.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7
* RWTH Aachen University, Germany, 2015-201
8
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAWinPCClock.h
View file @
6dc041dc
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
7