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

Link copied to clipboard
fun <T : Comparable<T>> PiecewiseBuilder(delimiter: T)

Functions

Link copied to clipboard
fun build(): PiecewisePolynomial<T>
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)

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

Link copied to clipboard