public class DataGenerator extends Object
Modifier | Constructor and Description |
---|---|
protected |
DataGenerator()
Since all of the methods are static, the constructor should
never be used.
|
Modifier and Type | Method and Description |
---|---|
static TimeSeries |
generateSine(String name,
long wavelength,
long duration,
long interval,
double magnitude,
double offset)
Generate data according to a sine wave.
|
static TimeSeries |
generateSine(String name,
long wavelength,
long duration,
long interval,
double magnitude,
double offset,
Date startTime)
Generate data according to a sine wave.
|
protected DataGenerator()
public static TimeSeries generateSine(String name, long wavelength, long duration, long interval, double magnitude, double offset)
name
- name for data setwavelength
- Wavelength of sine wave in millisecondsduration
- Duration for which series is to be generated in millisecondsinterval
- Interval between data points in milliseconds - The value must be
greater than or equal to one secondmagnitude
- maximum magnitudeoffset
- offset from 0public static TimeSeries generateSine(String name, long wavelength, long duration, long interval, double magnitude, double offset, Date startTime)
name
- name o chartwavelength
- Wavelength of sine wave in millisecondsduration
- Duration for which series is to be generated in millisecondsinterval
- Interval between data points in milliseconds - The value must be
greater than or equal to one secondoffset
- offset of middle amplitude of waveform from zerostartTime
- Starting time for plotmagnitude
- maximum of waveCopyright © 2017. All rights reserved.