Research Article
BTP: A Bedtime Predicting Algorithm via Smartphone Screen Status
Table 4
Pseudocode of prediction.
| Series | Procedure | Description |
| 1 | for in HistoryDays = do | | 2 | SimList.add(CalSim(d, )) | Calculate similarities between today and history days | 3 | end for | | 4 | SelList = GetK(SimilarityList, k) | Select the K most similar sequences | 5 | Result = WA(SelList) | Calculate result Using weighted average | 6 | end | |
|
|