ts_integrate: Create a timeseries profile

ts_integrateR Documentation

Create a timeseries profile

Description

Create a timeseries profile

Usage

ts_integrate(y)

Arguments

y

A 1D timeseries

Value

The profile calculated as cumsum(y[-length(y)]*diff(t)), with t as stats::time(y)

See Also

Other Time series operations: ts_center(), ts_changeindex(), ts_checkfix(), ts_detrend(), ts_diff(), ts_discrete(), ts_duration(), ts_embed(), ts_levels(), ts_peaks(), ts_permtest_block(), ts_permtest_transmat(), ts_rasterize(), ts_sd(), ts_slice(), ts_slopes(), ts_standardise(), ts_sumorder(), ts_symbolic(), ts_trimfill(), ts_windower()

Examples

y <- runif(1000,-3,3)
plot(ts(y))
y_i <- ts_integrate(y)
plot(ts(y_i))


FredHasselman/casnet documentation built on April 20, 2024, 3:05 p.m.