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.

FCTAnderson.h 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 "digitalfilterintegrator.h"
  14. namespace Lemma {
  15. // ===================================================================
  16. // Class: DigitalFilterCosTrans
  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 DigitalFilterCosTrans : public DigitalFilterIntegrator<Real> {
  28. friend std::ostream &operator<<(std::ostream &stream, const
  29. DigitalFilterCosTrans &ob);
  30. public:
  31. // ==================== LIFECYCLE =======================
  32. static DigitalFilterCosTrans* New();
  33. void Delete();
  34. // ==================== OPERATORS =======================
  35. // ==================== OPERATIONS =======================
  36. // ==================== ACCESS =======================
  37. // ==================== INQUIRY =======================
  38. protected:
  39. // ==================== LIFECYCLE =======================
  40. /// Default protected constructor.
  41. DigitalFilterCosTrans (const std::string& name);
  42. /// Default protected constructor.
  43. ~DigitalFilterCosTrans ();
  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 DigitalFilterCosTrans -----
  51. } //end of namespace Lemma
  52. #endif // __DIGITALFILTERCOSTRANS_H
  53. /* vim: set tabstop=4 expandtab: */
  54. /* vim: set filetype=cpp: */