centerOfProbabilities: Computes the center of probabilities (as center of mass) for...

Description Usage Arguments Value

View source: R/centerOfProbabilities.R

Description

Computes the center of probabilities (as center of mass) for each posterior probability cloud, at each time instant, for a device. It uses the results obtained from destim package.

Usage

1
centerOfProbabilities(centroid, postLocProb)

Arguments

centroid

A data.table object with the centroids for each tile in the grid.

postLocProb

a Matrix object with the posterior location probabilities computed by destim for a device. The number of rows equals the number of tiles and the number of columns equals the number of successive time instants. An element postLocProb[i,j] represents the posterior location probability corresponding to tile i at the time instant j.

Value

A table with two columns: centerProb_x and centerProb_y representing the x and y coordinates of the centers of probabilities.


bogdanoancea/deduplication documentation built on Dec. 2, 2020, 11:22 p.m.