eigen_bam | R Documentation |
Calucultates the Eigen values and Eigen vectors of bam objects
eigen_bam(A = NULL, M = NULL, which_eigen = 1, rmap = TRUE)
A |
A bam object of class setA. |
M |
A bam object of class setM. |
which_eigen |
An integer representing the which eigen value and eigen vector will be computed. |
rmap |
Logical. If TRUE the function will return a map of the eigen vector of the product AM. |
A table
## Not run: model_path <- system.file("extdata/Lepus_californicus_cont.tif", package = "bam") model <- raster::raster(model_path) sparse_mod <- bam::model2sparse(model = model) adj_mod <- bam::adj_mat(sparse_mod,nbgs=1,eigen_sys = T) eig_bam <- bam::eigen_bam(A=sparse_mod,M=adj_mod) raster::plot(eig_bam$map) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.