Learn R Programming

burnr (version 0.2.0)

intervals: Constructor for S3 intervals class.

Description

Constructor for S3 intervals class.

Usage

intervals(comp, densfun = "weibull")

Arguments

comp
A composite fhx instance. Should have only one series in it.
densfun
String giving desired distribution to fit. Suggest "weibull" or "lognormal". Default is "weibull".

Value

An intervals instance.

Examples

Run this code
data(pgm)
interv <- intervals(composite(pgm))
print(interv)

mean(interv)  # Mean interval

# Now fit log-normal distribution instead of Weibull.
intervals(composite(pgm), densfun = "lognormal")

## Not run: ------------------------------------
# # Boxplot of fire interval distribution.
# boxplot(intervals(composite(pgm))$intervals)
## ---------------------------------------------

Run the code above in your browser using DataLab