SectionedBivariateFunction

class SectionedBivariateFunction(completeFunction: BivariateFunction, sectionX: Range<Double>, sectionY: Range<Double>) : BivariateFunction

Cuts out a section of a BivariateFunction. If no cut out shall be applied for either x or y, provide either of them with Range.all.

Parameters

completeFunction

the complete bivariate function to be cut out

sectionX

section to be cut out of x

sectionY

section to be cut out of y

Constructors

Link copied to clipboard
constructor(completeFunction: BivariateFunction, sectionX: Range<Double>, sectionY: Range<Double>)

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

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.