SAStep

data class SAStep(val x: Double, val fOfX: Double, val rmSeries: Double, val rsc: Double, val stoppingCriteria: Double, val iterationCount: Int)(source)

Immutable snapshot of the SA algorithm state at the completion of one iteration. Emitted through SAStepEmitterIfc.stepEmitter and optionally accumulated via StochasticApproximationRootFinder.saveSteps. Safe to store, share, or pass across threads without mutation risk.

Parameters

x

Candidate root evaluated this iteration.

fOfX

Function value f(x).

rmSeries

Robbins-Monroe series value after Kesten update this iteration.

rsc

Exponentially smoothed accumulator after update this iteration: rsc = alpha * rsc_prev + (1 - alpha) * f(x).

stoppingCriteria

Convergence signal |scaleFactor * rmSeries * rsc|.

iterationCount

1-based iteration number when this snapshot was taken.

Constructors

Link copied to clipboard
constructor(x: Double, fOfX: Double, rmSeries: Double, rsc: Double, stoppingCriteria: Double, iterationCount: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val rsc: Double
Link copied to clipboard
Link copied to clipboard
val x: Double

Functions

Link copied to clipboard
open override fun toString(): String