Learn R Programming

BioGSP (version 1.0.0)

initSGWT: Initialize SGWT object

Description

Build an SGWT object with Data and Parameters slots, validate inputs.

Usage

initSGWT(
  data.in,
  x_col = "x",
  y_col = "y",
  signals = NULL,
  scales = NULL,
  J = 5,
  scaling_factor = 2,
  kernel_type = "heat"
)

Value

SGWT object with Data and Parameters slots initialized

Arguments

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")

Examples

Run this code
# \donttest{
# 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"))
# }

Run the code above in your browser using DataLab