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

Class TransformedSeries

  • All Implemented Interfaces:
    java.lang.Iterable<java.lang.Double>


    public class TransformedSeries
    extends Series
    Class TransformedSeries provides a Series that is formed by transforming the values in an underlying Series. The underlying series consists of a list of values xi. The transformed series consists of a list of values f(xi), where f is computed by a Function.
    • Constructor Detail

      • TransformedSeries

        public TransformedSeries(Series theSeries,
                                 Function theXFunction)
        Construct a new transformed series.
        Parameters:
        theSeries - Underlying series.
        theXFunction - Function for transforming the X values, or null not to transform the X 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 Series
        Returns:
        Length.
      • x

        public double x(int i)
        Returns the given X value in this series.
        Specified by:
        x in class Series
        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.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.