I am working on VQ and I have designed my code book based on the following steps:
1. Take mean of the whole data.
2. Add/subtract some random value to the mean thus it results in M1 and M2
3. Now calculate the Euclidean distance of all points (one by one) from M1 and then M2, lets call it E1 and E2, respectively.
4. If E1