Documentation of 'org.jplot2d.data.XYGraphData' Java class
XYGraphData
org.jplot2d.data

Class XYGraphData

  • All Implemented Interfaces:
    GraphData


    public final class XYGraphData
    extends java.lang.Object
    implements GraphData
    Immutable. This class keep (x,y) data pairs and compute data feature such as max/min, NaN indexes.
    • Method Detail

      • applyBoundary

        public XYGraphData applyBoundary(Range xboundary,
                                         Range yboundary)
        Description copied from interface: GraphData
        Apply the new boundary on x/y direction. Data outside the boundary are ignored.
        Specified by:
        applyBoundary in interface GraphData
        Parameters:
        xboundary - the new boundary to apply
        yboundary - 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.
      • 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: GraphData
        Returns 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 to true
        Specified by:
        getXRange in interface GraphData
      • getYRange

        public Range getYRange()
        Description copied from interface: GraphData
        Returns 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 to true
        Specified by:
        getYRange in interface GraphData
      • hasPointOutsideXBounds

        public boolean hasPointOutsideXBounds()
        Description copied from interface: GraphData
        Returns true if there are valid data out of the x boundary.
        Specified by:
        hasPointOutsideXBounds in interface GraphData
        Returns:
        the flag
      • hasPointOutsideYBounds

        public boolean hasPointOutsideYBounds()
        Description copied from interface: GraphData
        Returns true if there are valid data out of the y boundary.
        Specified by:
        hasPointOutsideYBounds in interface GraphData
        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.
      • 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

You see the box below because you did not login.