Compute MESS (Multivariate Environmental Similarity Surface)
Source:R/model_diagnostics.R
maxent_mess.RdMeasures how similar each cell is to the training environment using the full distribution of reference values. Negative MESS values indicate novel (non-analog) environments.
Measures how similar each cell is to the training environment using the full distribution of reference values. Negative MESS values indicate novel (non-analog) environments.
Usage
maxent_mess(env_grids, reference_values, feature_names)
maxent_mess(env_grids, reference_values, feature_names)Value
A named list with:
- mess_grid
External pointer to Grid<float> with MESS values
- mod_grid
External pointer to Grid<float> with Most Dissimilar Variable index (1-based)
A named list with:
- mess_grid
External pointer to Grid<float> with MESS values
- mod_grid
External pointer to Grid<float> with Most Dissimilar Variable index (1-based)
Examples
if (FALSE) { # \dontrun{
result <- maxent_mess(list(g1, g2),
list(temp_train_vals, precip_train_vals),
c("temp", "precip"))
mess_mat <- maxent_grid_to_matrix(result$mess_grid)
mod_mat <- maxent_grid_to_matrix(result$mod_grid)
} # }
if (FALSE) { # \dontrun{
result <- maxent_mess(list(g1, g2),
list(temp_train_vals, precip_train_vals),
c("temp", "precip"))
mess_mat <- maxent_grid_to_matrix(result$mess_grid)
mod_mat <- maxent_grid_to_matrix(result$mod_grid)
} # }