Isis Developer Reference
MocNarrowAngleSumming.h
Go to the documentation of this file.
1#ifndef MocNarrowAngleSumming_h
2#define MocNarrowAngleSumming_h
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12namespace Isis {
27 public:
33 MocNarrowAngleSumming(int csum, int ss) {
34 p_csum = csum;
35 p_ss = ((double) csum / 2.0) + 0.5 + (double)(ss - 1);
36 }
37
40
47 inline double Detector(double sample) const {
48 return (sample - 1.0) * (double) p_csum + p_ss;
49 }
50
57 inline double Sample(double detector) const {
58 return (detector - p_ss) / ((double) p_csum) + 1.0;
59 }
60
61 private:
62 int p_csum;
63 double p_ss;
64
65 };
66};
67#endif
Mars Global Surveyor MOC narrow angle summing class.
Definition MocNarrowAngleSumming.h:26
double Sample(double detector) const
Given the detector value, this method computes the corresponding sample.
Definition MocNarrowAngleSumming.h:57
~MocNarrowAngleSumming()
Destroys the MocNarrowAngleSumming object.
Definition MocNarrowAngleSumming.h:39
double Detector(double sample) const
Given the sample value, this method computes the corresponding detector.
Definition MocNarrowAngleSumming.h:47
MocNarrowAngleSumming(int csum, int ss)
Constructs the MocNarrowAngleSumming object.
Definition MocNarrowAngleSumming.h:33
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16