Clustering of waveforms-data based on FPCA direction