|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectifi.dsb.AxisValues
ifi.dsb.TimeAxis
Class for creation of time axis for use in plotting. Objects can hold axis values, axis label and values for sampling rate and sampling period.
FrequencyAxis| Constructor Summary | |
TimeAxis(double[] data)
Constructs TimeAxis object. |
|
TimeAxis(double[] data,
java.lang.String label)
Constructs TimeAxis object. |
|
TimeAxis(double samplingRate,
double min,
double max,
int length)
Constructs TimeAxis object. |
|
TimeAxis(double samplingRate,
double min,
double max,
int length,
java.lang.String label)
Constructs TimeAxis object. |
|
TimeAxis(double min,
double max,
int length)
Constructs TimeAxis object. |
|
TimeAxis(double min,
double max,
int length,
java.lang.String label)
Constructs TimeAxis object. |
|
TimeAxis(double samplingRate,
int length)
Constructs TimeAxis object. |
|
TimeAxis(double samplingRate,
int length,
java.lang.String label)
Constructs TimeAxis object. |
|
TimeAxis(int length)
Constructs TimeAxis object. |
|
| Method Summary | |
double |
getSamplingPeriod()
Return the sampling period. |
double |
getSamplingRate()
Return the sampling rate. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class ifi.dsb.AxisValues |
getLabel, getLength, getMax, getMin, getValues, setLabel, setLength, setMax, setMin, updateValues |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TimeAxis(int length)
length - Number of axis values. Axis values will span from zero to
(length - 1).
public TimeAxis(double samplingRate,
int length)
samplingRate - Value for sampling rate stored in the object, also
used to set the sampling period value in the object. Used in this
constructor as inverse of difference between consecutive axis values.
Axis minimum will be zero.length - Number of axis values.
public TimeAxis(double samplingRate,
int length,
java.lang.String label)
samplingRate - Value for sampling rate stored in the object, also
used to set the sampling period value in the object. Used in this
constructor as inverse of difference between consecutive axis values.
Axis minimum will be zero.length - Number of axis values.label - Axis label.
public TimeAxis(double min,
double max,
int length)
min - Minimum axis value.max - Maximum axis value.length - Number of axis values.
public TimeAxis(double min,
double max,
int length,
java.lang.String label)
min - Minimum axis value.max - Maximum axis value.length - Number of axis values.label - Axis label.public TimeAxis(double[] data)
data - Axis values. Minimum, maximum, length, sampling rate
and sampling period are all calculated from these values.
public TimeAxis(double[] data,
java.lang.String label)
data - Axis values. Minimum, maximum, length, sampling rate
and sampling period are all calculated from these values.label - Axis label.
public TimeAxis(double samplingRate,
double min,
double max,
int length)
samplingRate - Value for sampling rate stored in the object, also
used to set the sampling period value in the object.min - Axis minimum.max - Axis maximumlength - Number of axis values.
public TimeAxis(double samplingRate,
double min,
double max,
int length,
java.lang.String label)
samplingRate - Value for sampling rate stored in the object, also
used to set the sampling period value in the object.min - Axis minimum.max - Axis maximumlength - Number of axis values.label - Axis label.| Method Detail |
public double getSamplingRate()
public double getSamplingPeriod()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||