View source: R/intensityRatios.R
| TSL2AI | R Documentation |
TSL2AI() computes the cumulative Arias-intensity history from
acceleration rows in a canonical TSL table and returns the relative
value AI(t) / max(AI).
TSL2AI(.x, units.source, units.target = "mm", output = c("wide", "long"))
.x |
|
units.source |
character. Source length units of the |
units.target |
character. Target length units used for intermediate
calculations. Default |
output |
character. |
A data.table. Values are ratios in [0, 1] when the final
cumulative value is positive; otherwise ratios are NA_real_.
t <- seq(0, 1, by = 0.01)
tsl <- data.table::data.table(RecordID = "R1", OCID = "H1",
ID = "AT", t = t,
s = 1000 * sin(2 * pi * t))
TSL2AI(tsl, units.source = "mm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.