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
7737e456
Commit
7737e456
authored
Jul 15, 2019
by
Dipl.-Ing. Jonas Stienen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extending license for 2019
parent
29b9652f
Changes
49
Hide whitespace changes
Inline
Side-by-side
Showing
49 changed files
with
67 additions
and
53 deletions
+67
-53
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
+1
-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
+1
-1
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/ITAISO9613.h
include/ITAISO9613.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
+1
-1
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
+4
-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/ITASpectrum.cpp
src/ITASpectrum.cpp
+16
-5
tests/ITABaseSampleBufferTest.cpp
tests/ITABaseSampleBufferTest.cpp
+1
-1
No files found.
include/ITAAtomicOps.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAAtomicPrimitives.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAAudioSample.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAAudiofileCommon.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAAudiofileReader.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAAudiofileWriter.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITABaseDefinitions.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITABlockMath.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITABufferedAudioFileWriter.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAClock.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAConfigUtils.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAConstants.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITACriticalSection.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITADataLog.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITADebug.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAEndianness.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAException.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAFade.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAFastMath.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAFileSystemUtils.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAFiniteImpulseResponse.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAFunctors.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAHDFTSpectra.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAHDFTSpectrum.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAHPT.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAISO9613.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAInterpolation.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITALog.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAMagnitudeSpectrum.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAMultichannelFiniteImpulseResponse.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAMutex.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITANumericUtils.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAOps.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITASampleBuffer.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITASampleFrame.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITASampleTypeConversion.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITASimpleConvolution.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITASpectrum.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
@@ -81,6 +81,9 @@ public:
//! Element-wise subtraction
void
Sub
(
const
CITASpectrum
&
oOtherSpectrum
);
//! Element-wise inversion (throws ITAException if values are zero)
void
Invert
();
//! Compare equality of values (ignores center frequencies, but requires matching number of bands)
bool
CompareEqualValues
(
const
CITASpectrum
&
oOtherSpectrum
,
const
float
fThreshold
=
10.0e-10
)
const
;
...
...
include/ITAStopWatch.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAStringUtils.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAThirdOctaveMagnitudeSpectrum.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITATimeSeriesAnalyzer.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITATimer.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITATypes.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAUncopyable.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAWholeOctaveMagnitudeSpectrum.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
include/ITAWinPCClock.h
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
src/ITASpectrum.cpp
View file @
7737e456
...
...
@@ -105,13 +105,24 @@ void CITASpectrum::Add( const CITASpectrum& oOtherSpectrum )
m_vfValues
[
n
]
+=
oOtherSpectrum
[
int
(
n
)
];
}
void
CITASpectrum
::
Sub
(
const
CITASpectrum
&
oOtherSpectrum
)
void
CITASpectrum
::
Sub
(
const
CITASpectrum
&
oOtherSpectrum
)
{
if
(
GetNumBands
()
!=
oOtherSpectrum
.
GetNumBands
())
ITA_EXCEPT1
(
INVALID_PARAMETER
,
"Number of bands mismatching, can not sub spectra"
);
if
(
GetNumBands
()
!=
oOtherSpectrum
.
GetNumBands
()
)
ITA_EXCEPT1
(
INVALID_PARAMETER
,
"Number of bands mismatching, can not sub spectra"
);
for
(
size_t
n
=
0
;
n
<
m_vfValues
.
size
();
n
++
)
m_vfValues
[
n
]
-=
oOtherSpectrum
[
int
(
n
)
];
}
for
(
size_t
n
=
0
;
n
<
m_vfValues
.
size
();
n
++
)
m_vfValues
[
n
]
-=
oOtherSpectrum
[
int
(
n
)];
void
CITASpectrum
::
Invert
()
{
for
(
size_t
n
=
0
;
n
<
m_vfValues
.
size
();
n
++
)
{
if
(
m_vfValues
[
n
]
==
0.0
f
)
ITA_EXCEPT_INVALID_PARAMETER
(
"Could not invert spectrum, encountered values of zero"
);
m_vfValues
[
n
]
=
1.0
f
/
m_vfValues
[
n
];
}
}
bool
CITASpectrum
::
CompareEqualValues
(
const
CITASpectrum
&
oOtherSpectrum
,
const
float
fThreshold
/*= 10.0e-10 */
)
const
...
...
tests/ITABaseSampleBufferTest.cpp
View file @
7737e456
...
...
@@ -3,7 +3,7 @@
*
* ITA core libs
* (c) Copyright Institute of Technical Acoustics (ITA)
* RWTH Aachen University, Germany, 2015-201
8
* RWTH Aachen University, Germany, 2015-201
9
*
* ----------------------------------------------------------------
* ____ __________ _______
...
...
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