Package space.kscience.kmath.functions

Types

OrderedPiecewisePolynomial
Link copied to clipboard
common
class OrderedPiecewisePolynomial<T : Comparable<T>>(delimiter: T) : PiecewisePolynomial<T>
Ordered list of pieces in piecewise function
Piecewise
Link copied to clipboard
common
fun fun interface Piecewise<T, R>
PiecewisePolynomial
Link copied to clipboard
common
fun fun interface PiecewisePolynomial<T : Any> : Piecewise<T, Polynomial<T>>
Polynomial
Link copied to clipboard
common
inline class Polynomial<T : Any>(coefficients: List<T>)
Polynomial coefficients without fixation on specific context they are applied to
PolynomialSpace
Link copied to clipboard
common
class PolynomialSpace<T : Any, C : Ring<T>, ScaleOperations<T>>(ring: C) : Group<Polynomial<T>> , ScaleOperations<Polynomial<T>>
An algebra for polynomials

Functions

asFunction
Link copied to clipboard
common
fun <T : Comparable<T>, C : Ring<T>> PiecewisePolynomial<T>.asFunction(ring: C): (T) -> T?
fun <T : Any, C : Ring<T>> Polynomial<T>.asFunction(ring: C): (T) -> T
Represent the polynomial as a regular context-less function
Polynomial
Link copied to clipboard
common
inline fun <T : Any, C : Ring<T>, ScaleOperations<T>, R> C.polynomial(block: PolynomialSpace<T, C>.() -> R): R
value
Link copied to clipboard
common
fun Polynomial<Double>.value(): Double
fun <T : Any, C : Ring<T>> Polynomial<T>.value(ring: C, arg: T): T
fun <T : Comparable<T>, C : Ring<T>> PiecewisePolynomial<T>.value(ring: C, arg: T): T?
Return a value of polynomial function with given ring an given arg or null if argument is outside of piecewise definition.