Package de.gsi.dataset.spi.utils
Class DoublePointError
- java.lang.Object
-
- de.gsi.dataset.spi.utils.Tuple<DoublePoint,DoublePoint>
-
- de.gsi.dataset.spi.utils.DoublePointError
-
- Direct Known Subclasses:
FifoDoubleErrorDataSet.DataBlob
public class DoublePointError extends Tuple<DoublePoint,DoublePoint>
- Author:
- rstein
-
-
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 doublegetErrorX()doublegetErrorY()doublegetX()doublegetY()voidset(double newX, double newY)voidset(double newX, double newErrorX, double newY, double newErrorY)voidsetError(double newX, double newY)java.lang.StringtoString()
-
-
-
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 coordinatey- new Y coordinateerrorX- error of X coordinateerrorY- 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 setnewY- the Y coordinate to set
-
set
public void set(double newX, double newErrorX, double newY, double newErrorY)- Parameters:
newX- the x coordinate to setnewErrorX- the error estimate of the x coordinatenewY- the Y coordinate to setnewErrorY- the error estimate of the y coordinate
-
setError
public void setError(double newX, double newY)- Parameters:
newX- the x coordinate to setnewY- the Y coordinate to set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classTuple<DoublePoint,DoublePoint>
-
-