View source: R/null_dispersion_field_distribution.R
null_dispersion_field_distribution | R Documentation |
null_dispersion_field_distribution estimates a random distribution of the dispersion field values.
null_dispersion_field_distribution( pam, n_iter = 10, parallel = TRUE, n_cores = 2 )
pam |
A Presence-Absence-Matrix of matrix class or sparse matrix. |
n_iter |
Number of iterations to obtain the distribution. |
parallel |
If TRUE the computations will be performed in parallel. |
n_cores |
Number of cores for the parallel computation. |
Estimates a random distribution of the dispersion field values. To obtein random values it uses the function codepermute_pam at each step of the iterations.
A data matrix of size nrow(pam) X n_iter with dispersion field values.
Soberon2015bam
set.seed(111) pam <- matrix(rbinom(100,1,0.3),nrow = 10,ncol = 10) dfield_rand <- bam::null_dispersion_field_distribution(pam,n_iter=10, parallel=FALSE, n_cores = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.