123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- /* This file is part of Lemma, a geophysical modelling and inversion API.
- * More information is available at http://lemmasoftware.org
- */
-
- /* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
- /**
- * @file
- * @date 02/11/2014 03:33:08 PM
- * @version $Id$
- * @author Trevor Irons (ti)
- * @email Trevor.Irons@xri-geo.com
- * @copyright Copyright (c) 2014, XRI Geophysics, LLC
- * @copyright Copyright (c) 2014, Trevor Irons
- */
-
-
- #ifndef FHTKEY_INC
- #define FHTKEY_INC
-
- #include "hankeltransform.h"
-
- namespace Lemma {
-
- /**
- \brief Impliments the fast Hankel transform as outlines by Key 2011
- \details This filter uses 61, 121, or 201 filter points and supports both lagged and related
- kernel arguments. This algorithm is a port of code carrying the following copyright and
- restriction:
- %------------------------------------------------------------------%
- % Copyright (c) 2012 by the Society of Exploration Geophysicists. %
- % For more information, go to http://software.seg.org/2012/0003 . %
- % You must read and accept usage terms at: %
- % http://software.seg.org/disclaimer.txt before use. %
- %------------------------------------------------------------------%
- */
- class FHTKey : public HankelTransform {
-
- friend std::ostream &operator<<(std::ostream &stream,
- const FHTKey &ob);
-
- public:
-
- // ==================== LIFECYCLE =======================
-
- /**
- * @copybrief LemmaObject::New()
- * @copydetails LemmaObject::New()
- */
- static FHTKey* New();
-
- /**
- * @copybrief LemmaObject::Delete()
- * @copydetails LemmaObject::Delete()
- */
- void Delete();
-
- // ==================== OPERATORS =======================
-
- // ==================== OPERATIONS =======================
-
- Complex Zgauss(const int &ikk, const EMMODE &imode,
- const int &itype, const Real &rho,
- const Real &wavef, KernelEm1DBase *Kernel);
-
- /// Computes related kernels, if applicable, otherwise this is
- /// just a dummy function.
- void ComputeRelated(const Real& rho, KernelEm1DBase* Kernel);
-
- void ComputeRelated(const Real& rho, std::vector< KernelEm1DBase* > KernelVec);
-
- void ComputeRelated(const Real& rho, KernelEM1DManager* KernelManager);
-
- // ==================== ACCESS =======================
-
- // ==================== INQUIRY =======================
-
- protected:
-
- // ==================== LIFECYCLE =======================
-
- /** Default protected constructor, use New */
- FHTKey (const std::string& name);
-
- /** Default protected destructor, use Delete */
- ~FHTKey ();
-
- /**
- * @copybrief LemmaObject::Release()
- * @copydetails LemmaObject::Release()
- */
- void Release();
-
- private:
-
- // ==================== DATA MEMBERS =========================
-
- // Shared Filter Weights
- static const Eigen::Matrix<Real, 201, 3> WT201;
-
- /// Holds answer, dimensions are NumConv, and NumberRelated.
- Eigen::Matrix<Complex, Eigen::Dynamic, Eigen::Dynamic> Zans;
-
- }; // ----- end of class FHTKey -----
-
- } // ----- end of Lemma name -----
-
- #endif // ----- #ifndef FHTKEY_INC -----
|