# density.ppp

0th

Percentile

##### Kernel Smoothed Intensity of Point Pattern

Compute a kernel smoothed intensity function from a point pattern.

Keywords
methods, smooth, spatial
##### Usage
## S3 method for class 'ppp':
density(x, sigma, \dots, weights, edge=TRUE)
##### Arguments
x
Point pattern (object of class "ppp") to be smoothed.
sigma
Standard deviation of isotropic Gaussian smoothing kernel.
weights
Optional vector of weights to be attached to the points. May include negative values.
...
Arguments passed to as.mask to determine the pixel resolution.
edge
Logical flag: if TRUE, apply edge correction.
##### Details

This is a method for the generic function density. A kernel estimate of the intensity function of the point pattern is computed. The result is the convolution of the isotropic Gaussian kernel of standard deviation sigma with point masses at each of the data points. The default is to assign a unit weight to each point. If weights is present, the point masses have these weights (which may be signed real numbers).

If edge=TRUE, the intensity estimate is corrected for edge effect bias by dividing it by the convolution of the Gaussian kernel with the window of observation.

Computation is performed using the Fast Fourier Transform.

##### Value

• A pixel image (object of class "im").

##### synopsis

## S3 method for class 'ppp': density(x, sigma, \dots, edge=TRUE)

ppp.object, im.object

• density.ppp
##### Examples
data(cells)
Z <- density.ppp(cells, 0.05)
plot(Z)
Documentation reproduced from package spatstat, version 1.9-3, License: GPL version 2 or newer

### Community examples

Looks like there are no examples yet.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.2681950032711029, "perplexity": 4247.884632658659}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 5, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-47/segments/1573496668594.81/warc/CC-MAIN-20191115065903-20191115093903-00333.warc.gz"}