TransformedXYZSeries
edu.rit.numeric

Class TransformedXYZSeries



  • public class TransformedXYZSeriesextends XYZSeries
    Class TransformedXYZSeries provides an XYZSeries that is formed by transforming the values in an underlying XYZSeries. The underlying series consists of a list of triples (xiyizi). The transformed series consists of a list of triples (f1(xi), f2(yi), f3(zi)), where each of f1, f2, and f3 is computed by a Function.
    • Constructor Detail

      • TransformedXYZSeries

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

        public double x(int i)
        Returns the given X value in this series.
        Specified by:
        x in class XYZSeries
        Parameters:
        i - Index.
        Returns:
        The X value in this series at index i.
        Throws:
        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 XYZSeries
        Parameters:
        i - Index.
        Returns:
        The Y value in this series at index i.
        Throws:
        ArrayIndexOutOfBoundsException - (unchecked exception) Thrown if i is not in the range 0 .. length()-1.
      • z

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

SCaVis 1.8 © jWork.org