DoublePairArraySaver

A class to save pairs of observations to an array of double arrays, each with size 2.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The default increment for the array size

Link copied to clipboard

Counts the number of data points that were saved to the save array

Link copied to clipboard

A flag to indicate whether the saver should save the data as it is collected. If this flag is true, the data will be saved when the save() method is called.

Functions

Link copied to clipboard
fun clearData()

Clears any data that has been saved

Link copied to clipboard
open override fun onChange(newValue: Pair<Double, Double>)

This method is called when the observable needs observing

Link copied to clipboard
fun save(first: Double, second: Double)
Link copied to clipboard
Link copied to clipboard
fun write(out: PrintWriter)

Writes out the saved data to a file.