1#ifndef MocNarrowAngleSumming_h
2#define MocNarrowAngleSumming_h
35 p_ss = ((double) csum / 2.0) + 0.5 + (double)(ss - 1);
48 return (sample - 1.0) * (double) p_csum + p_ss;
57 inline double Sample(
double detector)
const {
58 return (detector - p_ss) / ((double) p_csum) + 1.0;
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