org.jplot2d.data
Class XYGraphData
- java.lang.Object
-
- org.jplot2d.data.XYGraphData
-
-
Constructor Summary
Constructors Constructor and Description XYGraphData(ArrayPair xy)XYGraphData(ArrayPair xy, ArrayPair errorX, ArrayPair errorY)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description XYGraphDataaddPoints(ArrayPair xy)Returns a new LineData that contains the appended points.XYGraphDataapplyBoundary(Range xboundary, Range yboundary)Apply the new boundary on x/y direction.int[][]getNaNIndexes()Returns the array of indexes of non-real values.intgetNaNIndexesCount()doublegetX(int idx)Get the X coordinate array.ArrayPairgetXError()doublegetXErrorHigh(int idx)doublegetXErrorLow(int idx)RangegetXRange()Returns x range which contains all valid data in x boundary.ArrayPairgetXy()doublegetY(int idx)Get the Y coordinate array.ArrayPairgetYError()doublegetYErrorHigh(int idx)doublegetYErrorLow(int idx)RangegetYRange()Returns y range which contains all valid data in y boundary.booleanhasPointOutsideXBounds()Returnstrueif there are valid data out of the x boundary.booleanhasPointOutsideYBounds()Returnstrueif there are valid data out of the y boundary.booleanisInfiniteX()Returns if there is a infinity value in x array.booleanisInfiniteY()Returns if there is a infinity value in x array.intsize()Returns the number of elements in this line data.
-
-
-
Constructor Detail
-
XYGraphData
public XYGraphData(ArrayPair xy)
-
-
Method Detail
-
applyBoundary
public XYGraphData applyBoundary(Range xboundary, Range yboundary)
Description copied from interface:GraphDataApply the new boundary on x/y direction. Data outside the boundary are ignored.- Specified by:
applyBoundaryin interfaceGraphData- Parameters:
xboundary- the new boundary to applyyboundary- the new boundary to apply- Returns:
- a new GraphData instance
-
addPoints
public XYGraphData addPoints(ArrayPair xy)
Returns a new LineData that contains the appended points.- Parameters:
xy-- Returns:
- a new LineData object.
-
getXy
public ArrayPair getXy()
-
getX
public double getX(int idx)
Get the X coordinate array.
-
getY
public double getY(int idx)
Get the Y coordinate array.
-
getXRange
public Range getXRange()
Description copied from interface:GraphDataReturns x range which contains all valid data in x boundary. If there is no valid data in x boundary, the empty property of returned Range will be set totrue
-
getYRange
public Range getYRange()
Description copied from interface:GraphDataReturns y range which contains all valid data in y boundary. If there is no valid data in y boundary, the empty property of returned Range will be set totrue
-
hasPointOutsideXBounds
public boolean hasPointOutsideXBounds()
Description copied from interface:GraphDataReturnstrueif there are valid data out of the x boundary.- Specified by:
hasPointOutsideXBoundsin interfaceGraphData- Returns:
- the flag
-
hasPointOutsideYBounds
public boolean hasPointOutsideYBounds()
Description copied from interface:GraphDataReturnstrueif there are valid data out of the y boundary.- Specified by:
hasPointOutsideYBoundsin interfaceGraphData- Returns:
- the flag
-
isInfiniteX
public boolean isInfiniteX()
Returns if there is a infinity value in x array.- Returns:
- if there is a infinity value in x array.
-
isInfiniteY
public boolean isInfiniteY()
Returns if there is a infinity value in x array.- Returns:
- if there is a infinity value in x array.
-
getNaNIndexes
public int[][] getNaNIndexes()
Returns the array of indexes of non-real values.- Returns:
- the array of indexes.
-
getNaNIndexesCount
public int getNaNIndexesCount()
-
size
public int size()
Returns the number of elements in this line data.- Returns:
- the number of elements in this line data.
-
getXError
public ArrayPair getXError()
-
getYError
public ArrayPair getYError()
-
getXErrorLow
public double getXErrorLow(int idx)
-
getXErrorHigh
public double getXErrorHigh(int idx)
-
getYErrorLow
public double getYErrorLow(int idx)
-
getYErrorHigh
public double getYErrorHigh(int idx)
-
-
DMelt 3.0 © DataMelt by jWork.ORG