LASP 1.0
Library for Acoustic Signal Processing
Loading...
Searching...
No Matches
lasp_filter.h
Go to the documentation of this file.
1#pragma once
2#include <vector>
3#include <memory>
4#include "lasp_types.h"
5#include "lasp_mathtypes.h"
10class Filter {
11public:
17 virtual void filter(vd &inout) = 0;
18 virtual ~Filter() = 0;
22 virtual void reset() = 0;
23
29 virtual std::unique_ptr<Filter> clone() const = 0;
30};
31
32
33inline Filter::~Filter() {}
Filter used to pre-filter a double-precision floating point data stream.
Definition lasp_filter.h:10
virtual std::unique_ptr< Filter > clone() const =0
Clone a filter, to generate a copy.
virtual ~Filter()=0
Definition lasp_filter.h:33
virtual void filter(vd &inout)=0
Filter input, and provides output in same array as input.
virtual void reset()=0
Reset filter state to 0 (history was all-zero).
arma::Col< d > vd