powered by
A function to compute principal surfaces based on input data containing continuous variables.
principal.surface( X, max.iter = 10, alpha = 0.6, N = 50, print_iterations = FALSE )
A list with the following components:
fj.mat
A numeric \(n \times p\) matrix of the final principal surface fitted values.
lambda.j
A numeric representation of the samples in two dimensions.
A data frame or matrix containing continuous variables.
Integer. Maximum number of iterations for the principal surface algorithm.
Numeric. The span argument passed to the loess() function.
loess()
Integer. The resolution for the interpolated grid surface, creating an \(N^2 \times p\) matrix.
Logical. Should the iterations in the principal surface algorithm be printed? Defaults to FALSE.
FALSE
# \donttest{ surface <- principal.surface(iris[,1:3],max.iter = 3)# } surface <- principal.surface(iris[1:50,1:3],max.iter = 3)
Run the code above in your browser using DataLab