Learn R Programming

spatstat.model (version 3.3-5)

traj: Extract trajectory of function evaluations

Description

Extract the history of evaluations of the objective function performed when a cluster process model was fitted.

Usage

traj(object)

Value

Either a data frame (belonging to class "traj") or NULL.

Arguments

object

Fitted cluster point process model (object of class "kppm") or objective function surface (object of class "objsurf").

Author

Adrian Baddeley Adrian.Baddeley@curtin.edu.au.

Details

Under appropriate circumstances, the fitted model object contains the history of evaluations of the objective function that were performed by the optimisation algorithm. This history is extracted by traj.

The result is a data frame containing the input parameter values for the objective function, and the corresponding value of the objective function, that were considered by the optimisation algorithm. This data frame also belongs to the class "traj" which has methods for plot, print and other purposes.

See Also

methods.traj

Examples

Run this code
  fit <- kppm(redwood, trajectory=TRUE)
  h <- traj(fit)

Run the code above in your browser using DataLab