/** * * @author CS2334. Modified by: ????? *
* Date: 2015-09-10
* Project 1
*
* This class represents individual, real-valued observations. This class * explicitly addresses the fact that some observations are invalid. * */ public class Observation { /** The observed value. */ private double value; /** Indicates whether the observation is a valid one */ private boolean valid; /** * Observation constructor. *
* Values that are larger than -900 are assumed to be valid * * @param value The value to be stored */ public Observation(double value){ // TODO: complete implementation } // TODO: add getters /** * Describes the observation. * * @return String that describes the observation: either the value or "invalid"; */ public String toString(){ // TODO: complete implementation } }