Calibrate the distribution of the modern climate space.

calib_clim_space(climate, bin_width)

Arguments

climate

A vector of climatic values where the species is present.

bin_width

The width of the bins used to correct for unbalanced climate state. Use values that split the studied climate gradient in 15-25 classes (e.g. 2°C for temperature variables). Default is 1.

Value

A ccs object that will be used by fit_pdfsp.

Examples

calib_clim_space(sample(0:300 / 10, 4000, replace = TRUE), 2)
#> $k1
#>  [1]  0  2  4  6  8 10 12 14 16 18 20 22 24 26 28 30 32
#> 
#> $k2
#>  [1] 251 237 273 283 245 271 267 254 258 266 279 269 248 275 309  15   0
#>