ahn_prob: Plot probability curves

Description Usage Arguments Value Examples

View source: R/ahn_prob.R

Description

Plot the probability curve P(Dij, mu, lamda) for removing links from the initial complete network

Usage

1
2
ahn_prob(Dij = seq(0.05, 10, length.out = 30), mu = c(0.1, 2, 5, 10),
  lamda = c(1e-04, 0.15, 0.35, 0.75, 1.25, 5, 30))

Arguments

Dij

A vector of Euclidean distances between node i and j

mu

The concave-to-convex transition point of the probability curves P(Dij, mu, lamda) = [1 + exp(-lamda(Dij - mu))]^-1, where Dij is the Euclidean distance between node i and j

lamda

The steepness of the probability curves

Value

Return a plot with probability curves

Examples

1
2
3
4
5
6
7
# plot the probabilities for removing network links between node i and j with
# Euclidean distances Dij

dis <- seq(.05, 10, length.out = 20)
m <- c(.1, 2, 5, 10)
l <- c(.0001, .15, .35, .75, 1.25, 5, 30)
ahn_prob(dis, m, l)

AnimalHabitatNetwork documentation built on Dec. 1, 2019, 1:14 a.m.