Last data update: 2014.03.03

R: Computes coordinates of PLC and FLC relative to origin
compute_LC_coordinatesR Documentation

Computes coordinates of PLC and FLC relative to origin

Description

Computes the space-time coordinates of PLC and FLC given control settings relative to the origin (mathbf{r}, t) = (oldsymbol 0, 0).

Since these coordinates do not change for different space-time positions, they can be computed once before getting the LC configurations for the entire field and then used in each call by array maskexing in get_LC_config.

Usage

compute_LC_coordinates(horizon = 1, speed = 1, space.dim = 1, type = c("PLC", "FLC"), 
    shape = c("cone", "tube", "revcone"))

Arguments

horizon

integer; horizon for the PLC or FLC

speed

speed of propagation

space.dim

maximum value

type

"PLC" or "FLC"

shape

shape of light cone: 'cone', 'tube', or 'revcone'.

See Also

get_LC_config setup_LC_geometry summary.LC plot.LC

Examples

plot(compute_LC_coordinates(speed = 1, horizon = 4), xlim = c(-4, 2), pch = "-", 
    cex = 2, col = 2, xlab = "Time", ylab = "Space")
points(compute_LC_coordinates(speed = 1, horizon = 2, type = "FLC"), pch = "+", cex = 2, 
    col = "blue")

plot(compute_LC_coordinates(speed = 1, horizon = 4, shape = "tube", type = "FLC"))
plot(compute_LC_coordinates(speed = 1, horizon = 4, shape = "revcone", type = "PLC"))

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(LICORS)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/LICORS/compute_LC_coordinates.Rd_%03d_medium.png", width=480, height=480)
> ### Name: compute_LC_coordinates
> ### Title: Computes coordinates of PLC and FLC relative to origin
> ### Aliases: compute_LC_coordinates
> ### Keywords: manip
> 
> ### ** Examples
> 
> plot(compute_LC_coordinates(speed = 1, horizon = 4), xlim = c(-4, 2), pch = "-", 
+     cex = 2, col = 2, xlab = "Time", ylab = "Space")
> points(compute_LC_coordinates(speed = 1, horizon = 2, type = "FLC"), pch = "+", cex = 2, 
+     col = "blue")
> 
> plot(compute_LC_coordinates(speed = 1, horizon = 4, shape = "tube", type = "FLC"))
> plot(compute_LC_coordinates(speed = 1, horizon = 4, shape = "revcone", type = "PLC"))
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>