Skip to contents

Fit Newmark displacement for one scenario row

Usage

fitDnScenario(row, weights)

Arguments

row

one-row data.table containing UHS, ky, Ts, Mw, NS, TR, IDg, IDm, Vs30, and ID. A legacy Rrup column is tolerated and ignored (the correlation model has no distance dependence). UHS may hold either a quantile spectrum or an analytic finite mixture accepted by sampleSaCorr().

weights

named numeric vector of active Newmark model weights by IDn.

Value

list with curve and draws data.tables. curve includes individual model rows and aggregate IDn rows: ensemble, rigid, and flexible. draws contains raw per-realisation model draws and the sampled PGA in g as PGA.s.