View source: R/approx_Z_master.R
approximate_strauss_constant | R Documentation |
Approximate the (log of) normalizing constant in the Strauss density. Log-scale.
approximate_strauss_constant(beta, gamma, range, bbox, method = "R", ...)
beta |
beta |
gamma |
gamma |
range |
range |
bbox |
bounding box |
method |
OT, PS, P, R or R3. Default: R |
... |
further details for methods For all methods but "PS" conditioning on number of points is by setting the named parameter n. Methods: OT : Direct approx., Ogata&Tanemura 1981. P: Direct approx., Penttinen 1998. PS: MC unbiased estimate, Path sampling Berthelsen&Moller 2003. R: My own version of Penttinen for unconditional case. Based on a normal approximation (not published). Works when beta*Area >> 0 R3: Third order approx. Same as R but with extra term. (See Ripley 88 p.60-62). The returned value is in log-scale. |
beta <- 100 gamma <- 0.1 R <- 0.05 bbox <- cbind(0:1, 0:1) for(m in c("P", "PS", "R3")) print(approximate_strauss_constant(beta, gamma, R, bbox, m)) approximate_strauss_constant(beta, gamma, R, bbox, n=100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.