exponent.removal: Computes de probability of removal of each node in the food...

View source: R/exp.removal.R

exponent.removalR Documentation

Computes de probability of removal of each node in the food web base on a exponential function

Description

Computes de probability of removal of each node in the food web base on a exponential function

Usage

exponent.removal(fw, i_index)

Arguments

fw

Food web matrix to be attacked, a data frame.

i_index

Parameter, between 0 and 1 defining the probability of attacking hubs.

Examples

data(mg1)
graph_list1 <- convert.to.graph.list(mg1)
#Create a vector with the values for the Intentionality Index (I)
i_index <- seq(from = 0, to = 1, by =0.01)
i_index <- head(i_index,-1)
fw1 <- graph_list1[[1]]
prob_exp <- exponent.removal(fw1, i_index)

FMestre1/fw_package documentation built on March 24, 2022, 1:27 a.m.