Package examples
Class Examples
java.lang.Object
examples.Examples
public class Examples
extends java.lang.Object
This class is supposed to serve as an entry point into using BinaryTimeseries
to store your time series data.
- Author:
- Jonathan Schilling (jonathan.schilling@mail.de)
-
Constructor Summary
Constructors Constructor Description Examples() -
Method Summary
Modifier and Type Method Description static voidExample1()In this example, a synthetic sine signal is computed and saved to a BinaryTimeseries file, java.io.tmpdir/example1.bts .static voidExample2()In this example, a synthetic sine signal is computed and saved to a BinaryTimeseries file, java.io.tmpdir/example2.bts .static voidmain(java.lang.String[] args)
-
Constructor Details
-
Examples
public Examples()
-
-
Method Details
-
main
public static void main(java.lang.String[] args) -
Example1
public static void Example1()In this example, a synthetic sine signal is computed and saved to a BinaryTimeseries file, java.io.tmpdir/example1.bts . The signal is read back and compared against the original time series. This example does not use the scaling parameters but just dumps the "final" double values into the file. -
Example2
public static void Example2()In this example, a synthetic sine signal is computed and saved to a BinaryTimeseries file, java.io.tmpdir/example2.bts . The signal is read back and compared against the original time series. This example uses the scaling feature, where the raw signal values are discretized as if an ideal ADC (16 Bit, -1...1 V input range, 1kHz sampling frequency) would measure them and stored asshortvalues with the correct scale and offset values.
-