PiecewiseBuilder

class PiecewiseBuilder<T : Comparable<T>>(delimiter: T)

A Piecewise builder where all the pieces are ordered by the Comparable type instances.

Parameters

T

the comparable piece key type.

delimiter

the initial piecewise separator

Constructors

PiecewiseBuilder
Link copied to clipboard
fun <T : Comparable<T>> PiecewiseBuilder(delimiter: T)
the comparable piece key type.

Functions

build
Link copied to clipboard
fun build(): PiecewisePolynomial<T>
putLeft
Link copied to clipboard
fun putLeft(left: T, piece: Polynomial<T>)
Dynamically adds a piece to the left side (beyond maximum argument value of previous piece)
putRight
Link copied to clipboard
fun putRight(right: T, piece: Polynomial<T>)
Dynamically adds a piece to the right side (beyond maximum argument value of previous piece)

Sources

common source
Link copied to clipboard