Skip to contents

Fit kmax for multiple scenario rows

Usage

fitKmaxScenarios(
  records,
  draws,
  weights,
  Da,
  useParallel = FALSE,
  workers = 1L
)

Arguments

records

data.table of kmax scenario rows. Each row has the contract required by fitKmaxScenario().

draws

data.table with TR, IDg, ky, s, Dn, and IDn. PGA.s, the sampled PGA in g, is required for exact recovery of a flat AM88 realization.

weights

named numeric vector of active Newmark model weights by IDn.

Da

numeric displacement targets in cm.

useParallel

logical. Use fork parallelism when available.

workers

integer worker count when useParallel = TRUE.

Value

Row-bound data.table of kmax results. Every scenario uses the standard p family documented by fitKmaxScenario().