FunctionalIterator

abstract class FunctionalIterator(aFunction: FunctionIfc, maxIterations: Int = 100, desiredPrecision: Double = KSLMath.defaultNumericalPrecision) : DBHIterativeProcess

Iterative process based on a one-variable function, having a single numerical result.

Inheritors

Constructors

Link copied to clipboard
constructor(aFunction: FunctionIfc, maxIterations: Int = 100, desiredPrecision: Double = KSLMath.defaultNumericalPrecision)

Properties

Link copied to clipboard

The achieved precision.

Link copied to clipboard

Desired precision.

Link copied to clipboard
Link copied to clipboard

Number of iterations performed.

Link copied to clipboard

Maximum allowed number of iterations.

Link copied to clipboard

Returns the result (assuming convergence has been attained).

Functions

Link copied to clipboard
fun evaluate()

Performs the iterative process. Note: this method does not return anything Subclass must implement a method to get the result

Link copied to clipboard

Check to see if the result has been attained.

Link copied to clipboard