RELEASE NOTES spatstat 1.12-5 07 January 2008 We thank Dominic Schuhmacher for contributions. OVERVIEW Extension of Kolmogorov-Smirnov test. Minor improvements to graphics and window manipulations. Bug fixes for point-in-polygon and window geometry algorithms. NEW FUNCTIONS kstest.ppp Performs a Kolmogorov-Smirnov goodness-of-fit test of Complete Spatial Randomness for a point pattern dataset. IMPROVEMENTS/ENHANCEMENTS kstest A new generic function kstest has been introduced, with methods for "ppp" and "ppm" objects. It performs the Kolmogorov-Smirnov goodness-of-fit test of fitted Poisson point process models. ks.test.ppm -> kstest.ppm The function ks.test.ppm has been renamed kstest.ppm and has become a method for the generic function kstest. lurking diagnose.ppm plot.diagppm These functions now handle graphical arguments controlling the plot (such as lwd, lty, main) expand.owin bounding.box These functions now preserve the `unitname' (name of the unit of length) intersect.owin union.owin These functions have been accelerated. They also check that the two windows have compatible `unitnames'. BUGS [1] Point-in-polygon test On some systems, in rare cases, the following error message would appear: Error in switch(w$type, rectangle = { : internal error: some scores are not equal to 0 or 1 The error actually occurred in the function inside.xypolygon which tests whether an (x,y) point lies inside a given polygon. The user's original command could have been [.ppp or ppm(), quadscheme() or several other functions. The error was caused by a rounding-error effect in the point-in-polygon test algorithm. This has been repaired. The problem can still occur in extremely unusual cases, but it now generates a warning rather than an error. [2] intersect.owin If P was a polygonal window and R was a rectangle, the result of intersect.owin(P, R) where P was a polygonal window was internally inconsistent, leading to obscure errors in other functions. [Detected by Dominic Schuhmacher.] Fixed. [3] plot.quadratcount, plot.quadrattest The argument 'col' was handled incorrectly. Fixed.