create_degree_probabilities_table: Creates a table storing probabilities for degrees

Description Usage Arguments Author(s) Examples

Description

Creates a table storing probabilities for degrees

Usage

1

Arguments

probabilities

a data frame containing the probabilities

norm

if TRUE, will normalize the table so the columns sum up to 1 (defaults to TRUE)

Author(s)

Samuel Thiriot <samuel.thiriot@res-ear.ch>

Examples

1
2
3
4
5
6
7
8
# create a table describing degrees depending to size; the bigger the size, the highest the degree
p <- data.frame(
                 'size=0'=c(0.2, 0.8, 0, 0, 0),
                 'size=1'=c(0.15, 0.8, 0.05, 0, 0),
                 'size=2'=c(0.05, 0.8, 0.1, 0.05, 0),
                 check.names=FALSE
                 )
create_degree_probabilities_table(probabilities=p)

samthiriot/gosp.dpp documentation built on May 18, 2019, 3:44 p.m.