normalize: Normalize

Description Usage Arguments Value Examples

Description

Scale a numeric vector by the sum of its elements

Usage

1

Arguments

x

A numeric vector

Value

x / sum(x)

Examples

1
2
  x <- c(1,1,1,1)
  normalize(x)

mixlink documentation built on May 2, 2019, 5:11 a.m.

Related to normalize in mixlink...