Skip to contents

Interaction matrix

Usage

fun_int_mat(n_species, alpha, min_alpha, max_alpha, interaction_type)

Arguments

n_species

Integer. Number of species in a metacommunity.

alpha

Numeric matrix. Species interaction strength. Enabled if interaction_type = "constant". Default 0.

min_alpha

Numeric. Minimum value of a uniform distribution generating interaction strength. Enabled if interaction_type = "random". Default NULL.

max_alpha

Numeric. Maximum value of a uniform distribution generating interaction strength. Enabled if interaction_type = "random". Default NULL.

interaction_type

Character. "constant" or "random". "constant" assumes the unique interaction strength of alpha for all pairs of species. "random" draws random numbers from a uniform distribution with min_alpha and max_alpha.