Description Usage Arguments Details Value
This functions help function knn_flow() use imbalance distance in caculating similarity among traffic flows.
1 | dist_imbalance(obj, base)
|
obj |
The object flow (fragment) to be forecasted. |
base |
The flow base (fragment) used by KNN method. |
Imbalance distance means that values of flow in flow base is treated differently, which depends on whether it's higher than object flow or otherwise. Because the punishment of forecast should be different whether the forecast tends to be higher or smaller. It's more tolerable that make higher forecast than lower.
The distance between object flow and every flow in flow base as a dataframe with the same order of flow in flow base.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.