Docs / quant / com.nablatensor.scenario

final class

Shock

A single named-input perturbation. Declarative data: the driver turns a set of these into setInput calls on a compiled kernel (Seam 6).

ABSOLUTE, RELATIVE and ADDITIVE are the common closed forms and ignore transform. CUSTOM carries an arbitrary base -> shocked function for anything that does not fit — a log-shock, a floor, a curve twist.

Methods

static ShockBuilder of()
String input()
KindEnum kind()
double amount()
DoubleUnaryOperator transform()
static Shock absolute(String input, double value)
static Shock relative(String input, double fraction)
static Shock additive(String input, double delta)
static Shock custom(String input, DoubleUnaryOperator transform)

An arbitrary base -> shocked perturbation of input.

double shocked(double base)

The shocked value of input, given its base value.