Description Usage Arguments Value Author(s) See Also Examples
Constructor function for the normmix
class. Creates a mixture in
two dimensions with bivariate normal components. If the parameters
lambda and window are set, this function will create an intensity surface
object of class intensity_surface
.
For examples see
http://faculty.missouri.edu/~micheasa/sppmix/sppmix_all_examples.html#normmix
The print
function can be used on a normmix
or intensity_surface
object in order to display basic information.
The summary
function can be used on a normmix
or intensity_surface
object in order to display additional information.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
ps |
Vector of component probabilities. |
mus |
A list where every element is a vector of length 2, defining the center of each component. |
sigmas |
A list where every element is a 2 by 2 covariance matrix, defining the covariance for each component. |
lambda |
Optional parameter denoting the average number of points over the
window. If set along with the |
win |
Optional parameter for the window of
observation, an object of type |
estimated |
Logical variable to indicate that this is an estimated mixture not the true mixture surface. By default it is set to FALSE, but when using the function to define an mixture based on estimates of the parameters it should be set to TRUE. |
x |
An object of class |
... |
Additional arguments for the S3 method. |
object |
An object of class |
An object of class "normmix" containing the following components:
m |
Number of components. |
ps |
Vector of component probabilities. |
mus |
List of mean vectors of the components. |
sigmas |
List of covariance matrices of the components. |
lambda |
Returned only if lambda is provided when calling
|
window |
Returned only |
estimated |
Whether the normal mixture is estimated. |
Yuchen Wang, Sakis Micheas
rnormmix
for
generating a mixture with random parameters.
1 2 3 4 5 6 7 8 | mix1 <- normmix(ps = c(.3, .7), mus = list(c(0.2, 0.2), c(.8, .8)),
sigmas = list(.01*diag(2), .01*diag(2)))
mix1
summary(mix1)
intsurf1 <- normmix(ps = c(.3, .7), mus = list(c(0.2, 0.2), c(.8, .8)),
sigmas = list(.01*diag(2), .01*diag(2)), lambda = 100, win = spatstat::square(1))
intsurf1
summary(intsurf1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.