Description Usage Arguments Value Author(s) See Also Examples
This function converts a normmix
object into an intensity_surface
object. It can also be used to change
the parameters lambda
(average number of points over the window)
or win
(window of observation)
of an intensity_surface
object.
For examples see
http://faculty.missouri.edu/~micheasa/sppmix/sppmix_all_examples.html#to_int_surf
If the class of mix
is normmix
,
lambda
and win
are used
to convert mix
into an intensity
surface class. If the class of mix
is intensity_surface
already, lambda
and win
are used to change the
original settings for these parameters.
1 | to_int_surf(mix, lambda = NULL, win = NULL, return_normmix = FALSE)
|
mix |
Object of class |
lambda |
Optional parameter treated as the average number of points over the window. |
win |
Optional parameter of class |
return_normmix |
Logical variable requesting to return a normal mixture (discard |
Object of class intensity_surface
.
Yuchen Wang
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | truemix <- normmix(ps=c(.4, .2,.4), mus=list(c(0.3, 0.3), c(.5,.5),c(0.7, 0.7)),
sigmas = list(.02*diag(2), .05*diag(2),.01*diag(2)))
intsurf=to_int_surf(truemix, lambda = 100, win = spatstat::square(1))
#plot the true mixture
plot(intsurf,main = "True Poisson intensity surface (mixture of normal components)")
# using the demo_mix normmix object
summary(demo_mix)
demo_surf1=to_int_surf(demo_mix, lambda = 100, win = spatstat::square(1))
plot(demo_surf1)
# using an intensity_surface object
summary(demo_intsurf)
demo_surf2=to_int_surf(demo_intsurf, win = spatstat::square(2))
summary(demo_surf2)
plot(demo_surf2)
demo_surf3=to_int_surf(demo_intsurf, lambda = 50)
plot(demo_surf3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.