Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

data2LCs

Iterate over (N+1)D field and get all LC configurations


Description

data2LCs gets all PLC or FLC configuration from a (N+1)D field given the LC template. The shape and dimension of this LC template depends on coordinates passed on by setup_LC_geometry.

User-defined LC template

Since data2LCs passes the LC.coordinates array to get_LC_config to iterate over the entire dataset, this functional programming approach allows user-defined light cone shapes (independent of the shapes implemented by setup_LC_geometry).

Just replace the $coordinates from the "LC" class with a user-specified LC template.

Usage

data2LCs(field, LC.coordinates = list(PLC = NULL, FLC = NULL))

Arguments

field

spatio-temporal field; either a matrix or a 3-dimensional array with time t as the first dimension, and the spatial coordinates as subsequent dimensions. Make sure to check compute_LC_coordinates for correct formatting.

LC.coordinates

coordinates for LC shape and dimension (usually the $coordinates value from the "LC" class; but also user-defined coordinates are possible here).

See Also

Examples

set.seed(1)
AA <- matrix(rnorm(200), ncol = 10)
LC_geom <- setup_LC_geometry(speed = 1, horizon = list(PLC = 2, FLC = 0), shape = "cone")
bb <- data2LCs(t(AA), LC.coordinates = LC_geom$coordinates)
image2(bb$PLC)
plot(density(bb$FLC))

# a time series example
data(nottem)
xx <- nottem
LC_geom <- setup_LC_geometry(speed = 1, horizon = list(PLC = 24, FLC = 3), space.dim = 0)
bb <- data2LCs(xx, LC.coordinates = LC_geom$coordinates)
image2(bb$PLC)
plot(density(bb$FLC))

LICORS

Light Cone Reconstruction of States - Predictive State Estimation From Spatio-Temporal Data

v0.2.0
GPL-2
Authors
Georg M. Goerg <gmg@stat.cmu.edu>
Initial release
2013-11-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.