Description Usage Arguments Value
View source: R/dispersionRadius.R
Computes the radius of dispersion for the probability cloud of a device at each time instant. The posterior location probabilities for a specific device, for each tile and each time instant, is provided as a parameter. The definition of the dispersion radius is given in WPI Deliverable 3.
1 2 3 4 5 6 7 | dispersionRadius(
centroid,
postLocProb,
center = NULL,
method = "euclidean",
p = 2
)
|
centroid |
The centroids of all tiles in the grid. |
postLocProb |
The posterior location probabilities for a device, for each tile and each time instant. |
center |
The (mass) center of posterior location probabilities. If it is not provided, it is computed here. |
method |
The distance function to be used. The euclidean distance is the default method.It could be "maximum", "manhattan", "canberra", "binary" or "minkowski". |
p |
The power of the Minkowski distance. The default value is 2 (euclidean distance). |
A vector with dispersion radius for each time instant, for the device under consideration.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.