Rev Language Reference


Probability

A Probability is a real value between 0.0 and 1.0

Usage

Probability(Real x)

Arguments

x : Real (pass by const reference)
The value.

Example

# Create a RealPos
x <- 12/13
type(x)

# Convert the RealPos to Probability
y := Probability(x)
type(y)

Distributions