Changeset 668 in Sophya for trunk/SophyaLib/SkyT/specresp.cc


Ignore:
Timestamp:
Nov 29, 1999, 3:16:10 PM (26 years ago)
Author:
ansari
Message:

Ajout de classes deleguees PPersist et correction integration - Sophie 29/11/99

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SkyT/specresp.cc

    r607 r668  
    11//--------------------------------------------------------------------------
    22// File and Version Information:
    3 //      $Id: specresp.cc,v 1.2 1999-11-20 21:00:52 ansari Exp $
     3//      $Id: specresp.cc,v 1.3 1999-11-29 14:16:08 ansari Exp $
    44//
    55// Description:
     
    1919#include "specresp.h"
    2020#include "integ.h"
     21#include "tvector.h"
    2122
    2223//----------------
     
    6061}
    6162
     63 
     64// To change min-max frequency
     65void
     66SpectralResponse::setMinMaxFreq(double numin, double numax)
     67{
     68  _numin = numin;
     69  _numax = numax;
     70}
    6271 
    6372
     
    108117SpectralResponse::IntegratedSpect(double numin, double numax) const
    109118{
     119  if(numin < this->minFreq()) numin = this->minFreq();
     120  if(numax > this->maxFreq()) numax = this->maxFreq();
     121
     122 
    110123  _mySpecResp = const_cast<SpectralResponse *>(this);
    111   if(numin <= _numin) numin = _numin;
    112   if(numax >= _numax) numax = _numax;
    113124  TrpzInteg I(SpectralResponse_transmission , numin, numax); 
    114125  double val = (double)I;
     
    129140SpectralResponse::logIntegratedSpect(double numin, double numax) const
    130141{
    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();
    133144  if(numin == 0) numin = 1.e-99;
    134145  double f1Log = log10(numin);
Note: See TracChangeset for help on using the changeset viewer.