Creates the Lennard-Jones pairwise interaction structure which can then be fitted to point pattern data.
LennardJones(sigma0=NA)
Optional. Initial estimate of the parameter
An object of class "interact"
describing the Lennard-Jones interpoint interaction
structure.
To avoid numerical instability,
the interpoint distances d
are rescaled
when fitting the model.
Distances are rescaled by dividing by sigma0
.
In the formula for d/sigma0
.
The rescaling happens automatically by default.
If the argument sigma0
is missing or NA
(the default),
then sigma0
is taken to be the minimum
nearest-neighbour distance in the data point pattern (in the
call to ppm
).
If the argument sigma0
is given, it should be a positive
number, and it should be a rough estimate of the
parameter
The ``canonical regular parameters'' estimated by ppm
are
Fitting the Lennard-Jones model is extremely unstable, because
of the strong dependence between the functions gcontrol=list(maxit=1e3)
in the call to ppm
.
Errors are likely to occur if this model is fitted to a point pattern dataset
which does not exhibit both short-range inhibition and
medium-range attraction between points. The values of the parameters
NA
(because the fitted canonical parameters have opposite sign, which
usually occurs when the pattern is completely random).
An absence of warnings does not mean that the fitted model is sensible.
A negative value of
In a pairwise interaction point process with the
Lennard-Jones pair potential (Lennard-Jones, 1924)
each pair of points in the point pattern,
a distance
See Examples for a plot of this expression.
This potential causes very strong inhibition between points at short
range, and attraction between points at medium range.
The parameter
This potential is used to model interactions between uncharged molecules in statistical physics.
The function ppm()
, which fits point process models to
point pattern data, requires an argument
of class "interact"
describing the interpoint interaction
structure of the model to be fitted.
The appropriate description of the Lennard-Jones pairwise interaction is
yielded by the function LennardJones()
.
See the examples below.
Lennard-Jones, J.E. (1924) On the determination of molecular fields. Proc Royal Soc London A 106, 463--477.
# NOT RUN {
fit <- ppm(cells ~1, LennardJones(), rbord=0.1)
fit
plot(fitin(fit))
# }
Run the code above in your browser using DataLab