make_norms: Create a set of normal matrices

View source: R/make_norms.R

make_normsR Documentation

Create a set of normal matrices

Description

'make_norms' creates a list of normal matrices of mean 0 and standard deviation 1 for each combination of feature length and window size that can easily be applied to kitchen_sink().

Usage

make_norms(featuresweep, windowsweep, mean = 0, sd = 1)

Arguments

featuresweep

A vector of feature sizes. Often varied in exponents of 2, e.g. 2^c(4:10)

windowsweep

A vector of window sizes. Maximum should be no larger than the length of the data to be analyzed.

mean

Mean of the normal distribution.

sd

Standard deviation of the normal distribution

Value

Returns a list of matrices where index [[f]][[w]] returns the normal matrix for featuresweep[f] and windowsweep[w].

Author(s)

Avery Kruger

See Also

kitchen_sweep()

kitchen_sink()

Examples

x <- matrix(1:5000,100,50)

myfeaturesweep <- 2^c(4:10)
mywindowsweep <- seq(10,ncol(x),10)
mynorms <- make_norms(myfeaturesweep, mywindowsweep)

for(f in 1:length(myfeaturesweep)){
  for(w in 1:length(mywindowsweep)){
      kitchen_sink(x,mynorms[[f]][[w]])
      }}


avery-kruger/kitchen documentation built on May 7, 2024, 6:40 a.m.