d-chambers / Detex

A Python package for subspace detection and waveform similarity clustering
Other
32 stars 6 forks source link

When fillZeros = True on the createCluster correlation coefs above 1 can be reported #16

Closed d-chambers closed 8 years ago

d-chambers commented 8 years ago

This is due to the normalization vector being very near 0 (because large parts of the waveform have been set to 0) causing a near division by zero.

d-chambers commented 8 years ago

Tested several cases. The CC values above 1 always occurred when parts of either waveforms was all zeros, or nearly all 0s. The solution for now is to set any value in the correlation coefficient above 1 to 0.