SubnetworksDiameter
class SubnetworksDiameter @JvmOverloads constructor(filter: ExportFilter, aggregators: List<String>, val precision: Int = 2) : AbstractAggregatingDoubleExporter(source)
Extract the diameter of the subnetworks in the network, by using the Euclidean distance within the environment. The result can be aggregated by the given aggregators and filtered by the given filter.
Properties
Functions
Link copied to clipboard
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.