BivariateFunction

abstract class BivariateFunction

Function with exactly two parameters of the form z = f(x, y).

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val domainX: Range<Double>

function's domain for x

Link copied to clipboard
abstract val domainY: Range<Double>

function's domain for y

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.