Research Article

A Spatial-Contextual Indoor Trajectory Prediction Approach via Hidden Markov Models

Algorithm 4

Trajectory prediction.
input: A set of indoor trajectory sequences
output: The predicted trajectory point at timestamp.
1: Initialize parameters;
2: if T.length 0 then
3:  Return FALSE;
4: end if
5: RT =Viterbi(T);
6: for i =0 to m_DimA do
7:  Compute ProNext
8:  Rank
9: end for
10: Return