Scale

data class Scale(val ratio: Double?) : ScoreTransformOp

Scales a score by the specified ratio.

Constructors

Link copied to clipboard
constructor(ratio: Double?)

Properties

Link copied to clipboard
private val _ratio: Double
Link copied to clipboard

The ratio to scale the score by. If null, implies to not scale the input score.

Functions

Link copied to clipboard
open fun <V : Any> andThen(p0: Function<in Double?, out V>): Function<Double?, V>
Link copied to clipboard
open override fun apply(input: Double?): Double?
Link copied to clipboard
open fun <V : Any> compose(p0: Function<in V, out Double?>): Function<V, Double?>
Link copied to clipboard
open operator override fun invoke(input: Double?): Double?

Scales the input value by ratio.