// file: filter/filter.h // // make sure definitions are made only once // #ifndef __ISIP_FILTER #define __ISIP_FILTER // isip include files // #ifndef __ISIP_INTEGRAL #include #endif // Filter : a class meant to apply a filter function to signal data // class Filter { //--------------------------------------------------------------------------- // // protected members // //--------------------------------------------------------------------------- protected: // information about the filter function // long width_d; // the actual filter function // double* data_d; // debug level // long debug_level_d; logical allocate_cc(long width); //--------------------------------------------------------------------------- // // public methods // //--------------------------------------------------------------------------- public: // required methods // unichar* name_cc(); volatile void error_handler_cc(unichar* method_name, unichar* message); logical debug_cc(FILE* fp, unichar* message); logical set_debug_cc(long level); // destructor/constructor // ~Filter(); Filter(); Filter(double* data, long width); // change filter properties // logical set_cc(double* data, long width); // apply the filter to signal data // logical apply_cc(double* data, long num_samples, long num_channels); //--------------------------------------------------------------------------- // // private methods // //--------------------------------------------------------------------------- private: }; // end of file // #endif