Changeset 668 in Sophya for trunk/SophyaLib/SkyT/specresp.cc
- Timestamp:
- Nov 29, 1999, 3:16:10 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyT/specresp.cc
r607 r668 1 1 //-------------------------------------------------------------------------- 2 2 // File and Version Information: 3 // $Id: specresp.cc,v 1. 2 1999-11-20 21:00:52ansari Exp $3 // $Id: specresp.cc,v 1.3 1999-11-29 14:16:08 ansari Exp $ 4 4 // 5 5 // Description: … … 19 19 #include "specresp.h" 20 20 #include "integ.h" 21 #include "tvector.h" 21 22 22 23 //---------------- … … 60 61 } 61 62 63 64 // To change min-max frequency 65 void 66 SpectralResponse::setMinMaxFreq(double numin, double numax) 67 { 68 _numin = numin; 69 _numax = numax; 70 } 62 71 63 72 … … 108 117 SpectralResponse::IntegratedSpect(double numin, double numax) const 109 118 { 119 if(numin < this->minFreq()) numin = this->minFreq(); 120 if(numax > this->maxFreq()) numax = this->maxFreq(); 121 122 110 123 _mySpecResp = const_cast<SpectralResponse *>(this); 111 if(numin <= _numin) numin = _numin;112 if(numax >= _numax) numax = _numax;113 124 TrpzInteg I(SpectralResponse_transmission , numin, numax); 114 125 double val = (double)I; … … 129 140 SpectralResponse::logIntegratedSpect(double numin, double numax) const 130 141 { 131 if(numin <= _numin) numin = _numin;132 if(numax >= _numax) numax = _numax;142 if(numin <= this->minFreq()) numin = this->minFreq(); 143 if(numax >= this->maxFreq()) numax = this->maxFreq(); 133 144 if(numin == 0) numin = 1.e-99; 134 145 double f1Log = log10(numin);
Note:
See TracChangeset
for help on using the changeset viewer.