eigen_bam: eigen_bam: Compute the Eigen system of two bam objects

View source: R/eigen_bam.R

eigen_bamR Documentation

eigen_bam: Compute the Eigen system of two bam objects

Description

Calucultates the Eigen values and Eigen vectors of bam objects

Usage

eigen_bam(A = NULL, M = NULL, which_eigen = 1, rmap = TRUE)

Arguments

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.

Value

A table

Examples

## 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)

luismurao/bam documentation built on Nov. 28, 2022, 3:02 p.m.