Changeset 610 in Sophya for trunk/SophyaLib/SkyT/specrespvector.cc
- Timestamp:
- Nov 22, 1999, 12:25:47 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SkyT/specrespvector.cc
r607 r610 1 1 //-------------------------------------------------------------------------- 2 2 // File and Version Information: 3 // $Id: specrespvector.cc,v 1. 2 1999-11-20 21:00:53ansari Exp $3 // $Id: specrespvector.cc,v 1.3 1999-11-21 23:25:47 ansari Exp $ 4 4 // 5 5 // Description: … … 57 57 { 58 58 if ( (nu < _numin) || (nu > _numax) ) return(0.); 59 double value = -99;59 double value = 0.; 60 60 int sizeVecOfNu = _vecOfNu.NElts(); 61 double minVal = _vecOfNu(0); 62 if(nu <= minVal) return _vecOfFDeNu(0); 61 if(nu <= _vecOfNu(0)) return _vecOfFDeNu(0); 63 62 if(nu >= _vecOfNu(sizeVecOfNu-1)) return _vecOfFDeNu(sizeVecOfNu-1); 64 63 65 64 for (int i=1; i<sizeVecOfNu; i++) 66 65 { 67 if(nu >= minVal && nu< _vecOfNu(i))66 if(nu < _vecOfNu(i)) 68 67 { 69 68 double up = _vecOfFDeNu(i) ; … … 75 74 return value; 76 75 } 77 else78 {79 minVal = _vecOfNu(i);80 }81 76 } 82 77 return value;
Note:
See TracChangeset
for help on using the changeset viewer.