| initSGWT | R Documentation |
Build an SGWT object with Data and Parameters slots, validate inputs.
initSGWT(
data.in,
x_col = "x",
y_col = "y",
signals = NULL,
scales = NULL,
J = 5,
scaling_factor = 2,
kernel_type = "heat"
)
data.in |
Data frame containing spatial coordinates and signal data |
x_col |
Character string specifying the column name for X coordinates (default: "x") |
y_col |
Character string specifying the column name for Y coordinates (default: "y") |
signals |
Character vector of signal column names to analyze. If NULL, all non-coordinate columns are used. |
scales |
Vector of scales for the wavelets. If NULL, scales are auto-generated. |
J |
Number of scales to generate if scales is NULL (default: 5) |
scaling_factor |
Scaling factor between consecutive scales (default: 2) |
kernel_type |
Kernel family ("mexican_hat", "meyer", or "heat") (default: "heat") |
SGWT object with Data and Parameters slots initialized
# Initialize SGWT object
data <- data.frame(x = runif(100), y = runif(100),
signal1 = rnorm(100), signal2 = rnorm(100))
SG <- initSGWT(data, signals = c("signal1", "signal2"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.