MeanSquaredError

class MeanSquaredError<T> @JvmOverloads constructor(incarnation: Incarnation<T, *>, localCorrectValueMolecule: String, localCorrectValueProperty: String = "", statistics: String, localValueMolecule: String, localValueProperty: String = "", val precision: Int? = null) : AbstractDoubleExporter

Exports the Mean Squared Error for the concentration of some molecule, given another molecule that carries the correct result. The correct value is extracted from every node, then the provided {@link UnivariateStatistic} is applied to get a single, global correct value. Then, the actual value is extracted from every node, its value is compared (subtracted) to the computed correct value, it gets squared, and then logged.

Parameters

concentration type

Constructors

Link copied to clipboard
constructor(incarnation: Incarnation<T, *>, localCorrectValueMolecule: String, statistics: String, localValueMolecule: String, precision: Int)
constructor(incarnation: Incarnation<T, *>, localCorrectValueMolecule: String, localCorrectValueProperty: String = "", statistics: String, localValueMolecule: String, localValueProperty: String = "", precision: Int? = null)

Properties

Link copied to clipboard
open override val columnNames: List<String>
Link copied to clipboard
val precision: Int? = null

Functions

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

Extracts properties from an environment. The returned map must either:

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. Captures E to String conversions. The default implementation just runs a toString() conversion ver extractData's return value's values.