MeanSquaredError

class MeanSquaredError<T> @JvmOverloads constructor(incarnation: Incarnation<T, *>, localCorrectValueMolecule: String, localCorrectValueProperty: String, statistics: String, localValueMolecule: String, localValueProperty: String) : Extractor<Double>

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
fun <T> MeanSquaredError(incarnation: Incarnation<T, *>, localCorrectValueMolecule: String, localCorrectValueProperty: String = "", statistics: String, localValueMolecule: String, localValueProperty: String = "")

Functions

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

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

Properties

Link copied to clipboard
open override val columnNames: List<String>