Main Lemma Repository
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

FastCosTransformAnderson.h 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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/07/2011
  9. @version $Id: digitalfiltercostrans.h 87 2013-09-05 22:44:05Z tirons $
  10. **/
  11. #ifndef __DIGITALFILTERCOSTRANS_H
  12. #define __DIGITALFILTERCOSTRANS_H
  13. #include "DigitalFilterIntegratorAnderson.h"
  14. namespace Lemma {
  15. // ===================================================================
  16. // Class: FastCosTransformAnderson
  17. /** \brief Cosine Transform via digital filters
  18. \details Based on Andersons' Hankel transform, this calculates
  19. the cosine 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) \cos (x\omega)~dx
  24. \f]
  25. */
  26. // ===================================================================
  27. class FastCosTransformAnderson : public DigitalFilterIntegratorAnderson<Real> {
  28. friend std::ostream &operator<<(std::ostream &stream, const
  29. FastCosTransformAnderson &ob);
  30. public:
  31. // ==================== LIFECYCLE =======================
  32. static std::shared_ptr< FastCosTransformAnderson > NewSP();
  33. /// Default protected constructor.
  34. FastCosTransformAnderson (const ctor_key& key);
  35. /// Default protected constructor.
  36. ~FastCosTransformAnderson ();
  37. // ==================== OPERATORS =======================
  38. // ==================== OPERATIONS =======================
  39. // ==================== ACCESS =======================
  40. // ==================== INQUIRY =======================
  41. protected:
  42. // ==================== LIFECYCLE =======================
  43. /// Set all the filter weights
  44. void SetFilterWeights();
  45. // ==================== DATA MEMBERS =========================
  46. //Eigen::Matrix<Real, 787, 1> FilterWeights;
  47. private:
  48. }; // ----- end of class FastCosTransformAnderson -----
  49. } //end of namespace Lemma
  50. #endif // __DIGITALFILTERCOSTRANS_H
  51. /* vim: set tabstop=4 expandtab: */
  52. /* vim: set filetype=cpp: */