PlaneFunction

class PlaneFunction(val slopeX: Double, val slopeY: Double, val intercept: Double, val domainX: Range<Double> = Range.all(), val domainY: Range<Double> = Range.all()) : BivariateFunction

Plane function of the form z = f(x, y) = slopeX * x + slopeY * y + intercept.

Parameters

slopeX

slope applied of x

slopeY

slope applied of y

intercept

intercept = f(0, 0)

Constructors

Link copied to clipboard
constructor(slopeX: Double, slopeY: Double, intercept: Double, domainX: Range<Double> = Range.all(), domainY: Range<Double> = Range.all())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val domainX: Range<Double>

function's domain for x

Link copied to clipboard
open override val domainY: Range<Double>

function's domain for y

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun value(x: Double, y: Double): Either<Exception, Double>

Returns the value z = f(x, y). If x is not in domainX or y is not in domainY an error is returned.

Link copied to clipboard
fun valueInFuzzy(x: Double, y: Double, tolerance: Double): Either<Exception, Double>

Returns the value z = f(x, y). If x is not in domainX or y is not in domainY an error is returned. However, a fuzziness is allowed with a certain tolerance.