|
Deep Neuronal Filter
|
Main Deep Neuronal Network main class. More...
#include <dnf.h>
Public Member Functions | |
| DNF (const int NLAYERS, const int numTaps, double fs, Neuron::actMethod am=Neuron::Act_Tanh) | |
| Constructor which sets up the delay lines, network layers and also calculates the number of neurons per layer so that the final layer always just has one neuron. More... | |
| double | filter (double signal, double noise) |
| Realtime sample by sample filtering operation. More... | |
| Net & | getNet () const |
| Returns a reference to the whole neural network. More... | |
| const int | getSignalDelaySteps () const |
| Returns the length of the delay line which delays the signal polluted with noise. More... | |
| const double | getDelayedSignal () const |
| Returns the delayed with noise polluted signal by the delay indicated by getSignalDelaySteps(). More... | |
| const double | getRemover () const |
| Returns the remover signal. More... | |
| const double | getOutput () const |
| Returns the output of the DNF: the the noise free signal. More... | |
| ~DNF () | |
| Frees the memory used by the DNF. | |
Main Deep Neuronal Network main class.
It's designed to be as simple as possible with only a few parameters as possible.
|
inline |
Constructor which sets up the delay lines, network layers and also calculates the number of neurons per layer so that the final layer always just has one neuron.
| NLAYERS | Number of layers |
| numTaps | Number of taps for the delay line feeding into the 1st layer |
| fs | Sampling rate of the signals used in Hz. |
| am | The activation function for the neurons. Default is tanh. |
|
inline |
Realtime sample by sample filtering operation.
| signal | The signal contaminated with noise. Should be less than one. |
| noise | The reference noise. Should be less than one. |
|
inline |
Returns the delayed with noise polluted signal by the delay indicated by getSignalDelaySteps().
|
inline |
Returns a reference to the whole neural network.
|
inline |
|
inline |
Returns the remover signal.
|
inline |
Returns the length of the delay line which delays the signal polluted with noise.