MetricIfc

interface MetricIfc

A performance metric is figure of merit that characterizes the performance of a device, system, method, or entity, relative to its alternatives.

A metric has a required name to help identify it and an optional description to provide context for the metric. The domain of the metric represents the natural set of possible (real) legal values for its values. The default interval for the domain is 0.0 to positive infinity. The direction provides the context for evaluation based on the metric value, with two cases:

  1. bigger values are considered better or 2) smaller values are considered better. The default direction is bigger is better. The metric can have a description of its units of measure unitsOfMeasure.

Inheritors

Types

Link copied to clipboard

Properties

Link copied to clipboard

Indicates if the lower limit of the domain may be adjusted during scaling processes

Link copied to clipboard

Indicates if the upper limit of the domain may be adjusted during scaling processes

Link copied to clipboard
abstract val description: String?
Link copied to clipboard
Link copied to clipboard
abstract val domain: Interval
Link copied to clipboard
abstract val name: String
Link copied to clipboard
abstract val unitsOfMeasure: String?

Functions

Link copied to clipboard
open fun badScore(): Score

Returns a valid score that has the worst possible value according to the direction of the meaning of better.

Link copied to clipboard
open fun metricData(modaName: String, weight: Double): MetricData

Returns an instance of MetricData based on (modaName, weight)

Link copied to clipboard
abstract fun newInstance(): MetricIfc