fillup: Fillup function

Description Usage Arguments Author(s) See Also Examples

Description

Function fillup() concatenates a vector with a ‘fillup’ value to ensure a unit sum; if given a matrix, attaches a column so the rowsums are 1.

Function indep() is the inverse: it removes the final element of a vector, leaving only an independent set.

Usage

1
2
fillup(x)
indep(x)

Arguments

x

Numeric vector

Author(s)

Robin K. S. Hankin

See Also

equalp

Examples

1
2
3
fillup(c(1/2,1/3))

indep(c(1/2,1/3,1/6))

hyper2 documentation built on Aug. 10, 2018, 1:15 a.m.