dnHalfNormal - half-Normal Distribution
| offset : | Real (pass by const reference) |
| The offset parameter. | |
| sd : | RealPos (pass by const reference) |
| The standard deviation parameter. |
# we simulate some oversations
x <- rhalfNormal(n=10,offset=0,sd=10)
# let's see what the minimum is (you could do the max too)
# the minimum should never be less than the offset
min(x)
# let's also see what the mean and the variance are
mean(x)
var(x)
sd(x)