ksmooth.SG.TSD: Applies a Gaussian 1-D, 2-D, or 3-D kernel on the 'data'...

View source: R/ksmooth.SG.TSD.R

ksmooth.SG.TSDR Documentation

Applies a Gaussian 1-D, 2-D, or 3-D kernel on the 'data' given as a list with names according to the TSD-convension, and the bandwidths given in the vector 'h':

Description

Applies a Gaussian 1-D, 2-D, or 3-D kernel on the 'data' given as a list with names according to the TSD-convension, and the bandwidths given in the vector 'h':

Usage

ksmooth.SG.TSD(
  data,
  h = 1,
  w = h * 3,
  sim = FALSE,
  ind = list(),
  drop = FALSE,
  var = "vbsc",
  na.rm = 1
)

Arguments

data

is the list of data with names according to the TSD-convension.

h

is the three element vector of bandwidths.

w

is the boundary of the kernel, outside which the it is 0.

sim

is a TRUE if smoothing should be done only along the first dimensions, simultaneously over the stages of the last dimension. If 'sim' is an integer larger than 1, the positions 'coords' are used 'sim' times, and the data 'x' should have length 'sim' times the length of one coordinate of 'coords'.

ind

is a list of indexes, as given to subset_TSD(), used to select the subset over which the estimation of high intensity noise is done. Defaulted to exclude the first 100 voxels along each beam.

drop

is TRUE if the data should be dropped of unused dimensions prior to smoothing. This can be useful for smoothing data which .

var

is a string specifying the variable to smooth.

na.rm

is single integer representing the dimension along which NAs are discarded from the smoothing in the case that sim==1. For example, if na.rm=2 and the dimension of 'x' is [5,12,7], and x[3,2:4,5]=NA, then all data x[,2:4,] will be excluded from the smoothing and set to NA. If na.rm=FALSE, no NAs should be contained in the data.


arnejohannesholmin/sonR documentation built on April 14, 2024, 11:39 p.m.