Ignore:
Timestamp:
Dec 19, 2001, 3:33:12 PM (24 years ago)
Author:
ansari
Message:

Suite modifs datacircleX.* ... par Touze Reza 19/12/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Samba/datacirclefake.cc

    r1770 r1825  
    2121double DataCircleFake::getData(double psi) const {
    2222
    23   int ibin= (int)floor(psi*_NMeasurements/2./M_PI);
     23  int ibin= l_ft_nint(psi*_NMeasurements/(2.*M_PI));
    2424  //cout << "bin= " << ibin << ", " << _mesures[ibin] << endl;
    2525  return _mesures[ibin];
     
    3737      << NMeasurements() << endl;
    3838}
     39
     40double DataCircleFake::getTMeasure(double psi) const {
     41
     42  if(_mesures == NULL) {
     43    cout << "  DataCircleFake::getTMeasure data must be stored"
     44         << " in an array... " << endl;
     45    exit(0);
     46  }
     47  int ibin= l_ft_nint(psi*_NMeasurements/(2.*M_PI));
     48  return _mesures[ibin];
     49}
Note: See TracChangeset for help on using the changeset viewer.