Description Usage Arguments Author(s) References Examples

This evaluates the density for the distance between two points, each distribution uniformly and independently in rectangles. The rectangles are congruent and lie on a lattice. Three special cases exist, when the two rectangles coincide, when the two rectangles lie on the same row (or column) of the lattice and when the two rectangles lie on different rows and columns.

1 | ```
f(d, rowwidth, colwidth, ax, bx, i, j)
``` |

`d` |
distance |

`rowwidth, colwidth` |
Dimensions of the rectangle |

`ax,bx` |
Coordinate of the lower left corner of the second rectangle. Lower left corner of the first is at the origin |

`i,j` |
Second rectangle lies in i-th row and j-th column of lattice. |

David Clifford

B. Ghosh "Random distances within a rectangle and between two rectangles", Bulletin of the Calcutta Mathematical Society, 1951, 43, 17-24

D. Clifford, "Computation of Spatial Covariance Matrices", JCGS, March 2005, vol. 14, no. 1, pp. 155-167(13)

1 2 3 |

```
[1] 1.056139
[1] 0.703125
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.