00001 /* ======== IGeoS ===== Distribition full ===== IGeoS ========= 00002 ** 00003 ** filter_spbal.h: Created by 'AMSS-developer' on Fri Jan 12 19:49:03 2018 00004 ** 00005 ** Product : IGeoS - Integrated Geoscience Software 00006 ** 00007 ** Description : System for seismic, well log, and potential-field data analysis 00008 ** 00009 ** =================== Limited License: =================================== 00010 ** 00011 ** This software is provided free under the following terms and conditions: 00012 ** 00013 ** 1. Permission to use, copy, and modify this software 00014 ** for non-commercial purposes without fee is hereby granted, provided 00015 ** that this copyright notice, the warranty disclaimer, and this 00016 ** permission notice appear in all copies. 00017 ** 00018 ** 2. Distribution of this software or any part of it "bundled" in with 00019 ** any product is considered to be a 'commercial purpose'. 00020 ** 00021 ** 3. Any new or adapted code developed to operate as a part of this 00022 ** software shall be contributed to the authors and distributed under 00023 ** the same license. 00024 ** 00025 ** ================== Warranty Disclaimer: ================================ 00026 ** 00027 ** This software is provided "as is", with no support and without 00028 ** obligation on the part of the author to assist in its use, correction, 00029 ** modification, or enhancement. No guarantees or warranties, 00030 ** either express or implied, and regarding the accuracy, safety, or 00031 ** fitness for any particular purpose are provided by any contributor 00032 ** to this software package. 00033 ** 00034 ** ======== IGeoS ===== Distribition full ===== IGeoS ========= */ 00035 00036 00037 struct Filter_SpBal : public Filter_Polygon 00038 { 00039 Filter_SpBal ( Filter *pred, int _type, boolean _zero_phase ) : 00040 Filter_Polygon ( pred, _type, _zero_phase ) 00041 {} 00042 00043 HEADER_PARAM f_window, f_start, f_end; 00044 00045 void proc ( FILTER *FIL, TRACE *t ); // filtering method 00046 00047 private: 00048 00049 boolean inv_amplitude ( FILTER *FIL, TRACE *t, 00050 COMPLEX *spectr, double factor, 00051 COMPLEX *result, int nf ); 00052 // Build the inverse of the amplitude spectrum scaled by onfft 00053 // in real parts of 'result'. 00054 // Return OK or FAIL, if bad AGC window 00055 }; 00056