PiecewiseBuilder

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

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
constructor(delimiter: T)

Functions

Link copied to clipboard
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)