Package-level declarations

Types

Link copied to clipboard
class MinimizationResult(val solution: DoubleArray, val value: Double, val gradient: DoubleArray, val inverseHessian: Array<DoubleArray>, val iterations: Int)

Functions

Link copied to clipboard
fun <T : Any> arrayToModel(data: DoubleArray, model: T)

converts array of doubles to model values

Link copied to clipboard
fun gradient(x: DoubleArray, objective: (parameters: DoubleArray) -> Double): DoubleArray
Link copied to clipboard
fun minimize(_x0: DoubleArray, weights: DoubleArray = DoubleArray(_x0.size) { 1.0 }, endOnLineSearch: Boolean = false, tol: Double = 1.0E-8, maxIterations: Int = 1000, f: (DoubleArray) -> Double): MinimizationResult
Link copied to clipboard
fun <T : Any> minimizeModel(model: T, endOnLineSearch: Boolean = false, tol: Double = 1.0E-8, maxIterations: Int = 1000, function: (T) -> Double)
Link copied to clipboard
fun <T : Any> modelToArray(model: T): DoubleArray

converts a model to an array of doubles