sgtplot
Class TestData
- java.lang.Object
-
- sgtplot.TestData
-
public class TestData extends java.lang.ObjectCreateSGTDataobjects 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 intLOG_LOGcreate log-log linestatic intPROFILEcreate profile datastatic intRANDOMcreate random datastatic intSINEcreate sine wavestatic intSINE_RAMPcreate sine wave with a rampstatic intTIME_SERIEScreate time series datastatic intX_SERIEScreate longitude track datastatic intXY_GRIDcreate X-Y gridstatic intXZ_GRIDcreate X-Y gridstatic intY_SERIEScreate latitude track datastatic intYZ_GRIDcreate X-Y gridstatic intZT_GRIDcreate 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 CollectiongetCollection()Get the Collection of points created with the point constructor.SGTDatagetSGTData()Get a SGTGrid or SGTLine object depending on type of constructor used.
-
-
-
Field Detail
-
PROFILE
public static final int PROFILE
create profile data- See Also:
- Constant Field Values
-
X_SERIES
public static final int X_SERIES
create longitude track data- See Also:
- Constant Field Values
-
Y_SERIES
public static final int Y_SERIES
create latitude track data- See Also:
- Constant Field Values
-
TIME_SERIES
public static final int TIME_SERIES
create time series data- See Also:
- Constant Field Values
-
XY_GRID
public static final int XY_GRID
create X-Y grid- See Also:
- Constant Field Values
-
XZ_GRID
public static final int XZ_GRID
create X-Y grid- See Also:
- Constant Field Values
-
YZ_GRID
public static final int YZ_GRID
create X-Y grid- See Also:
- Constant Field Values
-
ZT_GRID
public static final int ZT_GRID
create Z-T grid- See Also:
- Constant Field Values
-
LOG_LOG
public static final int LOG_LOG
create log-log line- See Also:
- Constant Field Values
-
SINE
public static final int SINE
create sine wave- See Also:
- Constant Field Values
-
RANDOM
public static final int RANDOM
create random data- See Also:
- Constant Field Values
-
SINE_RAMP
public static final int SINE_RAMP
create sine wave with a ramp- See Also:
- Constant Field Values
-
-
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_LOGrange- minimum and maximum overwhich to createtype- type of series, TestData.SINE or TestData.RANDOMamp- amplitudeoff- offsetper- 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_GRIDrange1- minimum and maximum overwhich to create for first axisrange2- minimum and maximum overwhich to create for second axistype- type of series, TestData.SINE or TestData.RANDOMamp- amplitudeoff- offsetper- 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.
-
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_SERIESrange- minimum and maximum for space axistrange- minimum and maximum overwhich to createdelta- space between points in daystype- type of series, TestData.SINE or TestData.RANDOMamp- amplitudeoff- offsetper- period- See Also:
PROFILE,X_SERIES,Y_SERIES,SINE,RANDOM
-
-
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