Similarity Measures and Anomaly Detection for Mixed Data