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 
31 public:
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 
52 
54 
55 public:
57  Decomposition();
59  virtual ~Decomposition();
60 
63  int findSubSpace(void);
64 };
65 
66 #endif // DECOMPOSITION_H_
#define DECOMPOSITION_NODATA_ERROR
Error when the data matrix is zero in either dimension.
Definition: Decomposition.H:26
Octave&#39;s octave_value_list class.
Definition: Octave.H:95
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
virtual ~DecompositionDebug()
Destructor.
Definition: Decomposition.H:41
Octave octave
The octave instance.
Definition: Decomposition.H:53
AudioMasker masker
The audio masking model, used to whiten the signal before decomposition.
Definition: Decomposition.H:51
gtkIOStream: /tmp/gtkiostream/include/DSP/Decomposition.H Source File
GTK+ IOStream  Beta