make_norms | R Documentation |
'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
().
make_norms(featuresweep, windowsweep, mean = 0, sd = 1)
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 |
Returns a list of matrices where index [[f]][[w]] returns the normal matrix for featuresweep[f] and windowsweep[w].
Avery Kruger
kitchen_sweep
()
kitchen_sink
()
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]])
}}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.