Main Lemma Repository
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

digitalfiltersintrans.h 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /* This file is part of Lemma, a geophysical modelling and inversion API */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. /**
  6. @file
  7. @author M. Andy Kass
  8. @date 02/18/2011
  9. @version $Id: digitalfiltersintrans.h 87 2013-09-05 22:44:05Z tirons $
  10. **/
  11. #ifndef __DIGITALFILTERSINTRANS_H
  12. #define __DIGITALFILTERSINTRANS_H
  13. #include "digitalfilterintegrator.h"
  14. namespace Lemma {
  15. // ===================================================================
  16. // Class: DigitalFilterSinTrans
  17. /** \brief Sine Transform via digital filters
  18. \details Based on Andersons' Hankel transform, this calculates
  19. the sine transform of a discrete function
  20. using a digital filter approach. Filter weights are
  21. hard-coded.
  22. Calculates transform of the form:
  23. \f[ \int_0^\infty f(x) \sin (x\omega)~dx
  24. \f]
  25. */
  26. // ===================================================================
  27. class DigitalFilterSinTrans : public DigitalFilterIntegrator<Real> {
  28. friend std::ostream &operator<<(std::ostream &stream, const
  29. DigitalFilterSinTrans &ob);
  30. public:
  31. // ==================== LIFECYCLE =======================
  32. static DigitalFilterSinTrans* New();
  33. void Delete();
  34. // ==================== OPERATORS =======================
  35. // ==================== OPERATIONS =======================
  36. // ==================== ACCESS =======================
  37. // ==================== INQUIRY =======================
  38. protected:
  39. // ==================== LIFECYCLE =======================
  40. /// Default protected constructor.
  41. DigitalFilterSinTrans (const std::string& name);
  42. /// Default protected constructor.
  43. ~DigitalFilterSinTrans ();
  44. void Release();
  45. /// Set all the filter weights
  46. void SetFilterWeights();
  47. // ==================== DATA MEMBERS =========================
  48. //Eigen::Matrix<Real, 787, 1> FilterWeights;
  49. private:
  50. }; // ----- end of class DigitalFilterSinTrans -----
  51. } //end of namespace Lemma
  52. #endif // __DIGITALFILTERSINTRANS_H