class MiniMax {
public:
// Constructor
MiniMax();
// Observe a data value, updating the recorded min, max, and count values
void observe (constint& t);
// Retrieve the accumulated statistics so far
int getCount() const {return count;} // # data values observed
int getMin() const {return min;} // smallest value observed
int getMax() const {return max;} // largest value observed
private:
int min;
int max;
int count;
};
#endif