gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
Decomposition.H
Go to the documentation of this file.
1
/* Copyright 2000-2018 Matt Flax <flatmax@flatmax.org>
2
This file is part of GTK+ IOStream class set
3
4
GTK+ IOStream is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
8
9
GTK+ IOStream is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
14
You have received a copy of the GNU General Public License
15
along with GTK+ IOStream
16
*/
17
#ifndef DECOMPOSITION_H_
18
#define DECOMPOSITION_H_
19
20
#include "
Octave.H
"
21
#include "
AudioMask/AudioMasker.H
"
22
#include "
DSP/OverlapAdd.H
"
23
24
#include <
Debug.H
>
25
26
#define DECOMPOSITION_NODATA_ERROR DECOMPOSITION_ERROR_OFFSET-1
27
28
30
class
DecompositionDebug
:
public
OverlapAddDebug
,
public
AudioMaskerDebug
{
31
public
:
34
DecompositionDebug
() {
35
#ifndef NDEBUG
36
errors
[
DECOMPOSITION_NODATA_ERROR
]=string(
"Decomposition: There is no data to process, please run the Decomposition::OverlapAdd::loadData method first."
);
37
#endif
38
}
39
41
virtual
~DecompositionDebug
() {}
42
};
43
48
template
<
typename
TYPE>
49
class
Decomposition
:
public
OverlapAdd
<TYPE> {
50
51
AudioMasker
masker
;
52
53
Octave
octave
;
54
55
public
:
57
Decomposition
();
59
virtual
~
Decomposition
();
60
63
int
findSubSpace(
void
);
64
};
65
66
#endif // DECOMPOSITION_H_
DECOMPOSITION_NODATA_ERROR
#define DECOMPOSITION_NODATA_ERROR
Error when the data matrix is zero in either dimension.
Definition:
Decomposition.H:26
Octave
Octave's octave_value_list class.
Definition:
Octave.H:95
AudioMasker.H
Debug.H
DecompositionDebug
Definition:
Decomposition.H:30
Debug::errors
std::map< int, std::string > errors
This will contain a map between error numbers and descriptive std::strings for the errors...
Definition:
Debug.H:115
Decomposition
Definition:
Decomposition.H:49
OverlapAddDebug
Definition:
OverlapAdd.H:39
AudioMasker
Definition:
AudioMasker.H:100
AudioMaskerDebug
Definition:
AudioMasker.H:37
DecompositionDebug::~DecompositionDebug
virtual ~DecompositionDebug()
Destructor.
Definition:
Decomposition.H:41
OverlapAdd.H
Octave.H
Decomposition::octave
Octave octave
The octave instance.
Definition:
Decomposition.H:53
OverlapAdd
Definition:
OverlapAdd.H:60
Decomposition::masker
AudioMasker masker
The audio masking model, used to whiten the signal before decomposition.
Definition:
Decomposition.H:51
DecompositionDebug::DecompositionDebug
DecompositionDebug()
Definition:
Decomposition.H:34
gtkIOStream: /tmp/gtkiostream/include/DSP/Decomposition.H Source File
Support this project by purchasing our hardware.
GTK+ IOStream
Beta