abstract class BivariateFunction: Any

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

Fields

Name Description
abstract domainX: Range<Double>

function's domain for x

abstract domainY: Range<Double>

function's domain for y

Constructors

Name Description
constructor()

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

Methods

value

fun value(x: Double, y: Double): Result<Double, Exception>

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

Parameters

Name Description
x: Double

parameter x for the function evaluation

y: Double

parameter y for the function evaluation

ReturnValue

Name Description
Result<Double, Exception>

valueInFuzzy

fun valueInFuzzy(x: Double, y: Double, tolerance: Double): Result<Double, Exception>

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.

Parameters

Name Description
x: Double

parameter x for the function evaluation

y: Double

parameter y for the function evaluation

tolerance: Double

allowed tolerance for fuzzy contains evaluation

ReturnValue

Name Description
Result<Double, Exception>