Description Usage Arguments Details Value Examples
This function computes the pair correlation function (PCF) for the point pattern of breakpoints. The PCF estimates g for a given radius distance r, where g represents the degree of clustering.
1 2 |
bfast_in |
A data frame generated by |
level |
A number indicating the significance level for the pointwise
Monte Carlo test. See the documentation for |
boundary |
A SpatialPolygons object defining the boundary of the PCF
analysis. If this argument is not supplied, all records in |
template |
A Raster object with the same resolution, extent, and
projection as the raster dataset used to generate |
resample_dist |
An optional number indicating the square dimension to
which the breakpoint pattern raster should be resampled. This argument is
in the same units as the projection of |
max.dist |
The maximum radius distance to which the PCF calculation
should be performed. If not supplied, the default is the diagonal distance
across |
output_directory |
An optional character file path to a directory to
which the PCF calculations for each year and month should be written in
|
mc.cores |
A numeric indicating the number of cores to be used in parallel computing. |
This function is a convenient wrapper for spatstat::pcf()
and
spatstat::envelope()
. Most default values in pcf
and
envelope
are accepted. However, the translation correction is used
here.
If level
is not set to NA
, a simulation envelope will be
computed according to the number of simulations needed to achieve
level
. However, the simulation process is very time-consuming so
setting level=NA
may be best choice for reasonable processing times.
The returned data frame has the following fields:
year
: The year of the observation.
month
: The month of
the observation.
type
: The type of statistic for g.
g
: The value of g for the given type
.
dist
:
The radius distance.
upper.bound, lower.bound
: The upper/lower
bound of the simulation envelope at distance dist
.
nsim
:
The number of simulations to produce the envelope.
sig.level
:
The significance level of the pointwise Monte Carlo test.
A list of length 2. The first item is a data frame summarizing the PCF results. The second item is the vector of radius distances.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.