LinearFunction

constructor(slope: Double, intercept: Double = 0.0, domain: Range<Double> = Range.all())

Parameters

slope

slope of linear function

intercept

intercept at f(0)

domain

defined domain for the function