dist_imbalance: Imbalance distance caculation

Description Usage Arguments Details Value

Description

This functions help function knn_flow() use imbalance distance in caculating similarity among traffic flows.

Usage

1

Arguments

obj

The object flow (fragment) to be forecasted.

base

The flow base (fragment) used by KNN method.

Details

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.

Value

The distance between object flow and every flow in flow base as a dataframe with the same order of flow in flow base.


ahorawzy/TFTSA documentation built on May 13, 2019, 12:18 p.m.