Public Member Functions | |
WienerFilter () | |
default constructor | |
QError | Compute () |
Compute quantities needed to filter samples. | |
QError | Compute_d () |
Compute quantities needed to filter samples (differentiated case). | |
QError | SetFilters_d (const QVector &avg, const QVector &noise) |
Store wiener filter parameters (differentiated case). | |
QError | SetFilters (const QVector &avg, const QVector &noise) |
Store wiener filter parameters. | |
double | GetADC2mV () |
returns convertions ADC units to mV | |
QError | Filter (const QVector &pSamples, QVector &samplesFiltered) |
fills samplesFiltered with the filtered samples | |
QError | Filter_d (const QVector &pSamples, QVector &samplesFiltered, double) |
fills samplesFiltered with filtered samples * | |
QError | Compute_2 () |
Computes quantities need for filtering. | |
QError | PowerSpectrum (const QVector &pSamples, QVector &samplesFiltered) |
returns the power spectrum of a signal | |
void | SetBaseLineWidth (double value) |
set the number of baseline widths for the threshold | |
double | GetThresh (const QVector &pSamples) |
returns the computed threshold for pSamples | |
void | SetThresh (int thresh) |
Set threshold for peak identification. | |
int | FindPeaks (const QVector &pSamples, QVector &positions, QVector &relamp) |
returns the number of peaks found and fills "positions" with their time positions | |
void | GetNoise (QVector &output) |
returns average noise power spectrum | |
void | GetAvg (QVector &output) |
returns average pulse | |
void | SetNormType (int i) |
select normalization type | |
WienerFilter () | |
default constructor | |
QError | Compute () |
Compute quantities needed to filter samples. | |
QError | Compute_d () |
Compute quantities needed to filter samples (differentiated case). | |
QError | SetFilters_d (const QVector &avg, const QVector &noise) |
Store wiener filter parameters (differentiated case). | |
QError | SetFilters (const QVector &avg, const QVector &noise) |
Store wiener filter parameters. | |
double | GetADC2mV () |
returns convertions ADC units to mV | |
QError | Filter (const QVector &pSamples, QVector &samplesFiltered) |
fills samplesFiltered with the filtered samples | |
QError | Filter_d (const QVector &pSamples, QVector &samplesFiltered, double) |
fills samplesFiltered with filtered samples * | |
QError | Compute_2 () |
Computes quantities need for filtering. | |
QError | PowerSpectrum (const QVector &pSamples, QVector &samplesFiltered) |
returns the power spectrum of a signal | |
void | SetBaseLineWidth (double value) |
set the number of baseline widths for the threshold | |
double | GetThresh (const QVector &pSamples) |
returns the computed threshold for pSamples | |
void | SetThresh (int thresh) |
Set threshold for peak identification. | |
int | FindPeaks (const QVector &pSamples, QVector &positions, QVector &relamp) |
returns the number of peaks found and fills "positions" with their time positions | |
QError | Amplitude (QVector &pSamples, float &) |
fills amp with the amplitude of the maximum point of pSamples | |
void | GetNoise (QVector &output) |
returns average noise power spectrum | |
void | GetAvg (QVector &output) |
returns average pulse | |
void | BiPol (double, double, double, double, double, double, double &, double &, double &) |
returns coefficients of the parabola passing through three points | |
void | SetNormType (int i) |
select normalization type | |
Private Attributes | |
QVector | AvgPulse |
QVector | AvgPS |
int | nSigPulses |
int | norm_type |
int | fTriggerPos |
QVector | fPS |
int | nNoisePS |
double | n_energy |
double | avg_energy |
double | conv |
double | blwidth |
double | fThreshold |
QVectorC | H |
double WienerFilter::GetThresh | ( | const QVector & | pSamples | ) |
returns the computed threshold for pSamples
for(unsigned int i = 0; i<size; i++) thresh+=pSamples[i]*pSamples[i];