AbstractDoubleExtractor

abstract class AbstractDoubleExtractor @JvmOverloads constructor(val precision: Int? = null) : Extractor<Double>

Double-formatting utility. Provided a precision representing the significant digits, formats doubles accordingly, using Locale.ENGLISH. If null is provided, returns the default conversion to string.

Inheritors

Constructors

Link copied to clipboard
constructor(precision: Int? = null)

Properties

Link copied to clipboard
abstract val columnNames: List<String>

The names of the properties that this Extractor can provide as columns.

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun <T> extractData(environment: Environment<T, *>, reaction: Actionable<T>?, time: Time, step: Long): Map<String, Double>

Extracts properties from an environment.

Link copied to clipboard
override fun <T> extractDataAsText(environment: Environment<T, *>, reaction: Actionable<T>?, time: Time, step: Long): Map<String, String>

Same as extractData, but specifically meant for textual outputs.