Documentation of 'edu.rit.numeric.AggregateXYSeries' Java class
AggregateXYSeries
edu.rit.numeric

Class AggregateXYSeries



  • public class AggregateXYSeries
    extends XYSeries
    Class AggregateXYSeries provides an XYSeries formed by aggregating two Series together.
    • Constructor Detail

      • AggregateXYSeries

        public AggregateXYSeries(Series x,
                                 Series y)
        Construct a new aggregate XY series. It is assumed that the x and y series are the same length.

        Note: This series object stores references to x and y. Changing the contents of x or y will change the contents of this series.

        Parameters:
        x - Series of X values.
        y - Series of Y values.
        Throws:
        java.lang.NullPointerException - (unchecked exception) Thrown if x or y is null.
    • Method Detail

      • length

        public int length()
        Returns the number of values in this series.
        Specified by:
        length in class XYSeries
        Returns:
        Length.
      • x

        public double x(int i)
        Returns the given X value in this series.
        Specified by:
        x in class XYSeries
        Parameters:
        i - Index.
        Returns:
        The X value in this series at index i.
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - (unchecked exception) Thrown if i is not in the range 0 .. length()-1.
      • y

        public double y(int i)
        Returns the given Y value in this series.
        Specified by:
        y in class XYSeries
        Parameters:
        i - Index.
        Returns:
        The Y value in this series at index i.
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - (unchecked exception) Thrown if i is not in the range 0 .. length()-1.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.