Research Article

The Optimized Anomaly Detection Models Based on an Approach of Dealing with Imbalanced Dataset for Credit Card Fraud Detection

Algorithm 3

PathLength [5]
Input: : an instance, : an iTREE, : current path length;
to be initialized to zero when first called
Output: path length of
1: if is an external node then
2:  return { is defined in Equation (1)}
3: end if
4: 
5: ifthen
6:  return
7: else
8:  return
9: end if