public class WaveformImpl extends java.lang.Object implements Waveform
Constructor and Description |
---|
WaveformImpl(double[] time,
double[] value)
Constructs waveform from time and value arrays.
|
Modifier and Type | Method and Description |
---|---|
void |
getEvent(int index,
double[] result)
Method to return the value of this signal at a given event index.
|
int |
getNumEvents()
Method to return the number of events in this signal.
|
public WaveformImpl(double[] time, double[] value)
time
- time arrayvalue
- value arrayjava.lang.IllegalArgumentException
- if time and value arrays have different sizepublic int getNumEvents()
getNumEvents
in interface Waveform
public void getEvent(int index, double[] result)