dnHalfCauchy
- half-Cauchy Distribution
location : | Real (pass by const reference) |
The location parameter. | |
scale : | RealPos (pass by const reference) |
The scale parameter. |
# we simulate some obversations
x <- rHalfCauchy(n=10,location=0,scale=1)
# let's see what the minimum is (you could do the max too). If this is not ‘location’, we're in trouble!
min(x)
# let's also see what the mean and the variance are.
The mean will not converge with more samples, the Cauchy family has no moments.
mean(x)
var(x)
sd(x)