DoubleArraySaver

A class to save data to an expanding array.

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 was saved

Link copied to clipboard
open override fun onChange(newValue: Double)

This method is called when the observable needs observing

Link copied to clipboard
fun save(x: Double)

fun save(array: DoubleArray)

Saves all data in the presented array.

Link copied to clipboard
Link copied to clipboard
fun write(out: PrintWriter)

Writes out the saved data to a file.