
Last chance! 50% off unlimited learning
Sale ends in
w
is w /norm(w)
.## S3 method for class 'default':
spatialSign(x)
## S3 method for class 'matrix':
spatialSign(x)
## S3 method for class 'data.frame':
spatialSign(x)
spatialSign(rnorm(5))
spatialSign(matrix(rnorm(12), ncol = 3))
# should fail since the fifth column is a factor
try(spatialSign(iris), silent = TRUE)
spatialSign(iris[,-5])
trellis.par.set(caretTheme())
featurePlot(iris[,-5], iris[,5], "pairs")
featurePlot(spatialSign(scale(iris[,-5])), iris[,5], "pairs")
Run the code above in your browser using DataLab