# valid

From rseedcalc v1.3
by Kevin Wright

##### #' Ensure probabilities are valid

Force calculated probabilities into the range [0,1].

##### Usage

`valid(x)`

##### Arguments

- x
- probability

##### Details

Due to floating-point arithmetic, a number that should represent a probability can be calculated as being less than zero or greater than one. This function returns a value that is a valid probability.

*Documentation reproduced from package rseedcalc, version 1.3, License: GPL-2*

### Community examples

Looks like there are no examples yet.