Class DoublePointError

    • Field Summary

      • Fields inherited from class de.gsi.dataset.spi.utils.Tuple

        x, y
    • Constructor Summary

      Constructors 
      Constructor Description
      DoublePointError()
      default constructor (zero coordinates and errors)
      DoublePointError​(double x, double y, double errorX, double errorY)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getErrorX()  
      double getErrorY()  
      double getX()  
      double getY()  
      void set​(double newX, double newY)  
      void set​(double newX, double newErrorX, double newY, double newErrorY)  
      void setError​(double newX, double newY)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DoublePointError

        public DoublePointError()
        default constructor (zero coordinates and errors)
      • DoublePointError

        public DoublePointError​(double x,
                                double y,
                                double errorX,
                                double errorY)
        Parameters:
        x - new X coordinate
        y - new Y coordinate
        errorX - error of X coordinate
        errorY - error of Y coordinate
    • Method Detail

      • getX

        public double getX()
        Returns:
        x coordinate
      • getErrorX

        public double getErrorX()
        Returns:
        assigned error of x coordinate
      • getY

        public double getY()
        Returns:
        y coordinate
      • getErrorY

        public double getErrorY()
        Returns:
        assigned error of y coordinate
      • set

        public void set​(double newX,
                        double newY)
        Parameters:
        newX - the x coordinate to set
        newY - the Y coordinate to set
      • set

        public void set​(double newX,
                        double newErrorX,
                        double newY,
                        double newErrorY)
        Parameters:
        newX - the x coordinate to set
        newErrorX - the error estimate of the x coordinate
        newY - the Y coordinate to set
        newErrorY - the error estimate of the y coordinate
      • setError

        public void setError​(double newX,
                             double newY)
        Parameters:
        newX - the x coordinate to set
        newY - the Y coordinate to set