Skip to content

Commit f789f38

Browse files
committed
model.images recognises dimyx etc
1 parent 36a3bf9 commit f789f38

File tree

6 files changed

+21
-12
lines changed

6 files changed

+21
-12
lines changed

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: spatstat.model
2-
Version: 3.3-2.004
3-
Date: 2024-10-01
2+
Version: 3.3-2.005
3+
Date: 2024-10-06
44
Title: Parametric Statistical Modelling and Inference for the 'spatstat' Family
55
Authors@R: c(person("Adrian", "Baddeley",
66
role = c("aut", "cre", "cph"),
@@ -55,7 +55,7 @@ Authors@R: c(person("Adrian", "Baddeley",
5555
person("Hangsheng", "Wang",
5656
role = "ctb"))
5757
Maintainer: Adrian Baddeley <[email protected]>
58-
Depends: R (>= 3.5.0), spatstat.data (>= 3.0-4), spatstat.univar (>= 3.0-0), spatstat.geom (>= 3.3-0), spatstat.random (>= 3.3-0), spatstat.explore (>= 3.3-0), stats, graphics, grDevices, utils, methods, nlme, rpart
58+
Depends: R (>= 3.5.0), spatstat.data (>= 3.0-4), spatstat.univar (>= 3.0-0), spatstat.geom (>= 3.3-3.002), spatstat.random (>= 3.3-0), spatstat.explore (>= 3.3-0), stats, graphics, grDevices, utils, methods, nlme, rpart
5959
Imports: spatstat.utils (>= 3.0-5), spatstat.sparse (>= 3.1-0),mgcv, Matrix, abind, tensor, goftest (>= 1.2-2)
6060
Suggests: sm, gsl, locfit, spatial, fftwtools (>= 0.9-8), nleqslv, glmnet, spatstat.linnet (>= 3.1-5), spatstat (>= 3.0-8)
6161
Description: Functionality for parametric statistical modelling and inference for spatial data,

NEWS

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11

2-
CHANGES IN spatstat.model VERSION 3.3-2.004
2+
CHANGES IN spatstat.model VERSION 3.3-2.005
33

44
OVERVIEW
55

6-
o Bug fixes.
6+
o Bug fixes and minor improvements.
77

8+
SIGNIFICANT USER-VISIBLE CHANGES
9+
10+
o model.images.ppm
11+
Now recognises arguments passed to 'as.mask'
12+
to control the pixel raster for the images.
13+
814
BUG FIXES
915

1016
o improve.kppm

R/ppmclass.R

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Class 'ppm' representing fitted point process models.
55
#
66
#
7-
# $Revision: 2.157 $ $Date: 2024/09/30 05:36:11 $
7+
# $Revision: 2.159 $ $Date: 2024/10/06 10:32:04 $
88
#
99
# An object of class 'ppm' contains the following:
1010
#
@@ -802,7 +802,10 @@ PPMmodelmatrix <- function(object,
802802
data = NULL,
803803
...,
804804
subset, Q=NULL, keepNA=TRUE, irregular=FALSE,
805-
splitInf=FALSE) {
805+
splitInf=FALSE,
806+
eps=NULL, dimyx=NULL, xy=NULL, rule.eps=NULL) {
807+
## trap pixel resolution arguments - not used
808+
dont.complain.about(eps, dimyx, xy, rule.eps)
806809
# handles ppm and ippm
807810
data.given <- !is.null(data)
808811
irregular <- irregular && inherits(object, "ippm") && !is.null(object$iScore)
@@ -966,9 +969,9 @@ model.images.ppm <- function(object, W=as.owin(object), ...) {
966969
X <- data.ppm(object)
967970
# irregular <- resolve.1.default(list(irregular=FALSE), list(...))
968971
## make a quadscheme with a dummy point at every pixel
969-
Q <- pixelquad(X, W)
972+
Q <- pixelquad(X, W, ...) # recognises dimyx etc
970973
## compute model matrix
971-
mm <- model.matrix(object, Q=Q, ...)
974+
mm <- model.matrix(object, Q=Q, ...) # ignores dimyx etc
972975
## retain only the entries for dummy points (pixels)
973976
mm <- mm[!is.data(Q), , drop=FALSE]
974977
mm <- as.data.frame(mm)

inst/doc/packagesizes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ date version nhelpfiles nobjects ndatasets Rlines srclines
1515
"2024-02-02" "3.2-10" 269 724 0 39028 1155
1616
"2024-03-22" "3.2-11" 269 724 0 39028 1155
1717
"2024-07-09" "3.3-1" 269 726 0 39051 1155
18-
"2024-10-01" "3.3-2.004" 269 726 0 39063 1155
18+
"2024-10-06" "3.3-2.005" 269 726 0 39066 1155

inst/info/packagesizes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ date version nhelpfiles nobjects ndatasets Rlines srclines
1515
"2024-02-02" "3.2-10" 269 724 0 39028 1155
1616
"2024-03-22" "3.2-11" 269 724 0 39028 1155
1717
"2024-07-09" "3.3-1" 269 726 0 39051 1155
18-
"2024-10-01" "3.3-2.004" 269 726 0 39063 1155
18+
"2024-10-06" "3.3-2.005" 269 726 0 39066 1155

man/spatstat.model-internal.Rd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ PoisSaddleArea(beta, fi)
436436
PoisSaddleGeyer(beta, fi)
437437
PoisSaddlePairwise(beta, fi)
438438
PPMmodelmatrix(object, data, \dots, subset, Q, keepNA, irregular,
439-
splitInf)
439+
splitInf, eps, dimyx, xy, rule.eps)
440440
\method{ppm}{default}(Q, trend, interaction,
441441
\dots, covariates, data, covfunargs, subset, clipwin,
442442
correction, rbord, use.gam, method, forcefit,

0 commit comments

Comments
 (0)