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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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 __FSTANDERSON
  12. #define __FSTANDERSON
  13. #include "DigitalFilterIntegratorAnderson.h"
  14. namespace Lemma {
  15. // ===================================================================
  16. // Class: FastSinTransformAnderson
  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 FastSinTransformAnderson : public DigitalFilterIntegratorAnderson<Real> {
  28. friend std::ostream &operator<<(std::ostream &stream, const
  29. FastSinTransformAnderson &ob);
  30. public:
  31. // ==================== LIFECYCLE =======================
  32. /// Default locked constructor.
  33. FastSinTransformAnderson (const ctor_key& key);
  34. /// Default destructor
  35. ~FastSinTransformAnderson ();
  36. static std::shared_ptr<FastSinTransformAnderson> NewSP();
  37. // ==================== OPERATORS =======================
  38. // ==================== OPERATIONS =======================
  39. // ==================== ACCESS =======================
  40. // ==================== INQUIRY =======================
  41. /** Returns the name of the underlying class, similiar to Python's type */
  42. virtual std::string GetName() const { return this->CName; }
  43. protected:
  44. // ==================== LIFECYCLE =======================
  45. /// Set all the filter weights
  46. void SetFilterWeights();
  47. // ==================== DATA MEMBERS =========================
  48. //Eigen::Matrix<Real, 787, 1> FilterWeights;
  49. private:
  50. /** ASCII string representation of the class name */
  51. static constexpr auto CName = "FastSinTransformAnderson";
  52. }; // ----- end of class FastSinTransformAnderson -----
  53. } //end of namespace Lemma
  54. #endif // __FSTANDERSON_H