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

Class TransformedXYSeries



  • public class TransformedXYSeries
    extends XYSeries
    Class TransformedXYSeries provides an XYSeries that is formed by transforming the values in an underlying XYSeries. The underlying series consists of a list of pairs (xiyi). The transformed series consists of a list of pairs (f1(xi), f2(yi)), where each of f1 and f2 is computed by a Function.
    • Constructor Detail

      • TransformedXYSeries

        public TransformedXYSeries(XYSeries theSeries,
                                   Function theXFunction,
                                   Function theYFunction)
        Construct a new transformed X-Y series.
        Parameters:
        theSeries - Underlying X-Y series.
        theXFunction - Function for transforming the X values, or null not to transform the X values.
        theYFunction - Function for transforming the Y values, or null not to transform the Y values.
        Throws:
        java.lang.NullPointerException - (unchecked exception) Thrown if theSeries 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.