proportionize: Turn a number into a valid proportion

Description Usage Arguments Examples

Description

An internal function not intended for the user. Turns an arbitrary number into a valid proportion by setting the number equal to the closest value in [0,1].

Usage

1
proportionize(x, zero = 1e-05, one = 0.999)

Arguments

x

The number to be turned into a proportion.

zero

A very small number that is just larger than 0.

one

A number that is just smaller than 1.

Examples

1
2
3

SimTimeVar documentation built on May 2, 2019, 8:31 a.m.