Isis 3.0 Programmer Reference
Back | Home
MocNarrowAngleSumming.h
Go to the documentation of this file.
1 #ifndef MocNarrowAngleSumming_h
2 #define MocNarrowAngleSumming_h
3 
22 namespace Isis {
37  public:
43  MocNarrowAngleSumming(int csum, int ss) {
44  p_csum = csum;
45  p_ss = ((double) csum / 2.0) + 0.5 + (double)(ss - 1);
46  }
47 
50 
57  inline double Detector(double sample) const {
58  return (sample - 1.0) * (double) p_csum + p_ss;
59  }
60 
67  inline double Sample(double detector) const {
68  return (detector - p_ss) / ((double) p_csum) + 1.0;
69  }
70 
71  private:
72  int p_csum;
73  double p_ss;
74 
75  };
76 };
77 #endif
MocNarrowAngleSumming(int csum, int ss)
Constructs the MocNarrowAngleSumming object.
double Detector(double sample) const
Given the sample value, this method computes the corresponding detector.
double Sample(double detector) const
Given the detector value, this method computes the corresponding sample.
~MocNarrowAngleSumming()
Destroys the MocNarrowAngleSumming object.
Mars Global Surveyor MOC narrow angle summing class.

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:23:44