Class DataPoint

java.lang.Object
  |
  +--DataPoint

public class DataPoint
extends java.lang.Object

DataPoint serves as a class for data points in the Cosmo applet. They are defined by the user within the applet and overlayed on the Age/Redshift plot.


Constructor Summary
DataPoint(double x, double y, double u)
          Construct a new datapoint at (x,y) with an uncertainty of u.
 
Method Summary
 double getUncertainty()
          Retrieve the uncertainty of this datapoint
 double getXValue()
          Retrieve the x-value of this datapoint
 double getYValue()
          Retrieve the y-value of this datapoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataPoint

public DataPoint(double x,
                 double y,
                 double u)
Construct a new datapoint at (x,y) with an uncertainty of u.
Method Detail

getXValue

public double getXValue()
Retrieve the x-value of this datapoint

getYValue

public double getYValue()
Retrieve the y-value of this datapoint

getUncertainty

public double getUncertainty()
Retrieve the uncertainty of this datapoint