Harmonic Balance Metric for Binary Classification - Coding problem | OneNoughtOne