Companion

Types

Link copied to clipboard
class SimplexData(val originalPoint: DoubleArray, val fractionalParts: DoubleArray, val sortedFractionIndices: IntArray, val sortedFractions: List<Double>, val vertices: List<DoubleArray>, val weights: DoubleArray)

This class represents the data structure for a computed simplex. The simplex is a set of vertices, each with a weight.

Link copied to clipboard
class SimplexPoint(val vertex: DoubleArray, val weight: Double)

A point within a simplex with its weight

Properties

Link copied to clipboard

The default initial number of SPLINE search calls that will grow. It is set to 10. This is b_0 in the notation of the paper.

Link copied to clipboard

The default initial sample size for the SPLINE search. It is equal to 8.

Link copied to clipboard

The default maximum number of iterations for the line search. It is set to 10.

Link copied to clipboard

Since the number of SPLINE calls can grow, this represents the default maximum number of SPLINE calls to limit the growth.

Link copied to clipboard

This value is used as the default termination threshold for the largest number of iterations, during which no improvement of the best function value is found. By default, set to 10.

Link copied to clipboard

The default perturbation factor for the PERTURB function. It is equal to 0.15.

Link copied to clipboard

The default maximum number of iterations for the SPLI search. It is equal to 5.

Link copied to clipboard

The default SPLINE search iteration growth factor. It is set to 0.1.

Functions

Link copied to clipboard
fun addRandomPerturbation(point: DoubleArray, perturbationFactor: Double, rnStream: RNStreamIfc): DoubleArray

This function adds a random perturbation to the supplied point.

Link copied to clipboard

Determines a piecewise-linear simple consisting of d + 1 vertices, where d is the size of the point. The simplex is formed around the supplied point, and the weights are such that the vertices form a convex combination of the vertices where the convex hull contains the supplied point.