Docs / nablatensor-quant / com.nablatensor.scenario

record

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.

Record components

input
String
kind
Kind
amount
double
transform
DoubleUnaryOperator

Constructors

Shock(String input, Kind kind, double amount)

Methods

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.