Documentation of 'sgtplot.TestData' Java class
TestData
sgtplot

Class TestData



  • public class TestData
    extends java.lang.Object
    Create SGTData objects containing test data. These objects can be used for graphics and analysis testing purposes.
    Since:
    1.0
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int LOG_LOG
      create log-log line
      static int PROFILE
      create profile data
      static int RANDOM
      create random data
      static int SINE
      create sine wave
      static int SINE_RAMP
      create sine wave with a ramp
      static int TIME_SERIES
      create time series data
      static int X_SERIES
      create longitude track data
      static int XY_GRID
      create X-Y grid
      static int XZ_GRID
      create X-Y grid
      static int Y_SERIES
      create latitude track data
      static int YZ_GRID
      create X-Y grid
      static int ZT_GRID
      create Z-T grid
    • Constructor Summary

      Constructors 
      Constructor and Description
      TestData()
      Create default test data.
      TestData(int dir, Range2D range, int type, float amp, float off, float per)
      Create one-dimensional spatial test data.
      TestData(int dir, Range2D range1, Range2D range2, int type, float amp, float off, float per)
      Create two-dimensional spatial test data.
      TestData(int dir, Range2D range, TimeRange trange, float delta, int type, float amp, float off, float per)
      Create time series test grid data.
      TestData(int dir, TimeRange range, float delta, int type, float amp, float off, float per)
      Create time series test data.
      TestData(Range2D xrnge, Range2D yrnge, int num)
      Create a Collection of points.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Collection getCollection()
      Get the Collection of points created with the point constructor.
      SGTData getSGTData()
      Get a SGTGrid or SGTLine object depending on type of constructor used.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TestData

        public TestData()
        Create default test data. Will create profile (z) data with sine shape.
      • TestData

        public TestData(int dir,
                        Range2D range,
                        int type,
                        float amp,
                        float off,
                        float per)
        Create one-dimensional spatial test data.
        Parameters:
        dir - direction of test data, TestData.X_SERIES, TestData.Y_SERIES, TestData.PROFILE, TestData.LOG_LOG
        range - minimum and maximum overwhich to create
        type - type of series, TestData.SINE or TestData.RANDOM
        amp - amplitude
        off - offset
        per - period
        See Also:
        PROFILE, X_SERIES, Y_SERIES, LOG_LOG, SINE, RANDOM
      • TestData

        public TestData(int dir,
                        Range2D range1,
                        Range2D range2,
                        int type,
                        float amp,
                        float off,
                        float per)
        Create two-dimensional spatial test data.
        Parameters:
        dir - direction of test data, TestData.XY_GRID, TestData.XZ_GRID, TestData.YZ_GRID
        range1 - minimum and maximum overwhich to create for first axis
        range2 - minimum and maximum overwhich to create for second axis
        type - type of series, TestData.SINE or TestData.RANDOM
        amp - amplitude
        off - offset
        per - period
        See Also:
        PROFILE, X_SERIES, Y_SERIES, SINE, RANDOM
      • TestData

        public TestData(int dir,
                        TimeRange range,
                        float delta,
                        int type,
                        float amp,
                        float off,
                        float per)
        Create time series test data.
        Parameters:
        dir - direction of test data, TestData.TIME_SERIES
        range - minimum and maximum overwhich to create
        delta - space between points in days
        type - type of series, TestData.SINE or TestData.RANDOM
        amp - amplitude
        off - offset
        per - period
        See Also:
        PROFILE, X_SERIES, Y_SERIES, SINE, RANDOM
      • TestData

        public TestData(int dir,
                        Range2D range,
                        TimeRange trange,
                        float delta,
                        int type,
                        float amp,
                        float off,
                        float per)
        Create time series test grid data.
        Parameters:
        dir - direction of test data, TestData.ZT_SERIES
        range - minimum and maximum for space axis
        trange - minimum and maximum overwhich to create
        delta - space between points in days
        type - type of series, TestData.SINE or TestData.RANDOM
        amp - amplitude
        off - offset
        per - period
        See Also:
        PROFILE, X_SERIES, Y_SERIES, SINE, RANDOM
      • TestData

        public TestData(Range2D xrnge,
                        Range2D yrnge,
                        int num)
        Create a Collection of points.
        Parameters:
        xrnge - range of values in x
        yrnge - range of values in y
        num - number of values to create
    • Method Detail

      • getCollection

        public Collection getCollection()
        Get the Collection of points created with the point constructor.
        Returns:
        Collection of points
      • getSGTData

        public SGTData getSGTData()
        Get a SGTGrid or SGTLine object depending on type of constructor used.
        Returns:
        SGTData object.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.