Esempio n. 1
0
 public double Filter(double val)
 {
     lastValues.Enqueue(val);
     if (lastValues.Count == H.Length + 1)
     {
         lastValues.Dequeue();
         return(FilterUtilities.Convolve(lastValues.ToArray(), H));
     }
     return(val);
 }
Esempio n. 2
0
 public ConvolvingDoubleEndedFilter(double fMin, double fMax, double bandwidth, double sampleRate, bool pass)
     : base(FilterUtilities.DoubleEndedBlackmann(fMin / sampleRate, fMax / sampleRate, bandwidth / sampleRate, pass))
 {
 }
Esempio n. 3
0
 public ConvolvingSingleEndedFilter(double fCutoff, double bandwidth, double sampleRate, bool highPass)
     : base(FilterUtilities.SingleEndedBlackmann(fCutoff / sampleRate, bandwidth / sampleRate, highPass))
 {
 }