spd()
Scientific results for this function.
For two bearings on a shared slope, the D02 comparison of summing before and after transformation gave an integrated absolute density difference of 0.00159 after normalisation. D02 results.
Broad azimuth SPDs were continuous at north and correctly interpolated across the final grid segment. D01 checks.
A summed probability density gives each input measurement one density curve. The function linearly interpolates these curves onto one angular grid, assigns zero outside each curve's sampled support and adds their heights point by point. With an automatically chosen range it zeroes summed heights below the cutoff. With an explicit range it retains the calculated heights across that range.
Normalisation takes place after interpolation and any cutoff, over
the returned grid. An explicit restricted xrange therefore normalises
the retained portion only. Zero-area, nonfinite or negative densities and
grids with fewer than two points cannot be normalised and produce an error.
Changing resolution can still affect interpolation and
truncation accuracy, but the returned trapezoidal area is one.
Method references
Silva, F (2020) A probabilistic framework and significance test for the analysis of structural orientations in skyscape archaeology Journal of Archaeological Science 118, 105138. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.jas.2020.105138")}
Subsetting and normalising densities.
Implementation arguments, return value and documented modes
| Argument | Formal default | Behaviour in this interface |
|---|---|---|
pdf |
— | A skyscapeR.pdf object created with either |
xrange |
— | Array of values (min and max) for SPD if different from range of pdf. If given, it overrides .cutoff |
normalise |
F |
If TRUE, scale the returned density to unit area using trapezoidal integration. Default FALSE leaves the summed density unnormalised. |
.res |
0.01 |
Resolution with which to output SPD. Default is 0.01 degrees. |
.cutoff |
1e-05 |
When the range is chosen automatically, set summed densities below this threshold to zero. Default |
Return value
A skyscapeR.spd list with metadata and a data
data frame containing coordinate x (degrees) and density y.
Normalised densities have units of inverse degrees.
Implementation. R/statistics.R. Full function help · Significance tests · Uncertainty and orientation distributions outline · From a measured orientation to a declination distribution · Give each opening a distribution