# npfun

From spatstat v1.31-2
by Adrian Baddeley

##### Dummy Function Returns Number of Points

Returns a summary function which is constant with value equal to the number of points in the point pattern.

- Keywords
- spatial, nonparametric

##### Usage

`npfun(X, ..., r)`

##### Arguments

- X
- Point pattern.
- ...
- Ignored.
- r
- Vector of values of the distance argument $r$.

##### Details

This function is normally not called by the user. Instead it is passed
as an argument to the function `psst`

.

##### Value

- Object of class
`"fv"`

representing a constant function.

##### See Also

##### Examples

```
data(cells)
fit0 <- ppm(cells, ~1)
v <- psst(fit0, npfun)
```

*Documentation reproduced from package spatstat, version 1.31-2, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.