Print a fire intervals object

# S3 method for intervals
print(x, ...)

Arguments

x

An intervals object.

...

Additional arguments that are tossed.

See also

intervals() to create a fire intervals object.

Examples

data(pgm)
interv <- intervals(composite(pgm))
#> Warning: ties should not be present for the Kolmogorov-Smirnov test
print(interv)
#> 	Interval Analysis
#> 	=================
#> 
#> Composite name: COMP
#> Events range: 1636 to 1871
#> 
#> 	Total intervals: 20
#> 	Mean interval: 11.8
#> 	Median interval: 10
#> 	Weibull median: 10.6
#> 	Standard deviation: 7.7
#> 	Minimum interval: 2
#> 	Maximum interval: 30
#> 
#> 
#> Theoretical distribution
#> ------------------------
#> 
#> Fit distribution: weibull
#> 
#>      shape        scale   
#>    1.6565206   13.2125358 
#>  ( 0.2797517) ( 1.8871133)
#> 
#> 
#> Percentiles
#> -----------
#> 
#> lower (12.5%): 3.9 | weibull median (50.0%): 10.6 | upper (87.5%): 20.6
#> 
#> Asymptotic one-sample Kolmogorov-Smirnov test
#> ---------------------------------------------
#> 
#> D^- = 0.12776, p = 0.89978
#> Null hypothesis: The intervals were sampled from the theoretical
#>     distribution.
#> Alt. hypothesis: The intervals were not sampled from the theoretical
#>     distribution.
#> 
#> 

# Note, you can also catch the printed table:
summary_stats <- print(interv)
#> 	Interval Analysis
#> 	=================
#> 
#> Composite name: COMP
#> Events range: 1636 to 1871
#> 
#> 	Total intervals: 20
#> 	Mean interval: 11.8
#> 	Median interval: 10
#> 	Weibull median: 10.6
#> 	Standard deviation: 7.7
#> 	Minimum interval: 2
#> 	Maximum interval: 30
#> 
#> 
#> Theoretical distribution
#> ------------------------
#> 
#> Fit distribution: weibull
#> 
#>      shape        scale   
#>    1.6565206   13.2125358 
#>  ( 0.2797517) ( 1.8871133)
#> 
#> 
#> Percentiles
#> -----------
#> 
#> lower (12.5%): 3.9 | weibull median (50.0%): 10.6 | upper (87.5%): 20.6
#> 
#> Asymptotic one-sample Kolmogorov-Smirnov test
#> ---------------------------------------------
#> 
#> D^- = 0.12776, p = 0.89978
#> Null hypothesis: The intervals were sampled from the theoretical
#>     distribution.
#> Alt. hypothesis: The intervals were not sampled from the theoretical
#>     distribution.
#> 
#>