Hi,
I have a problem to compute a hammingDistance between A(1xn, 1-D array) and B(1xm 1-D array).
For example
A = {1 , 2, 3, ..... , 30, 31, 32, 33, 34, 35, ......, 62, 63, 64} ; 1x64(1x32x2) array
B = { 32, 31, 30, ......, 3, 2, 1} ; 1x32 array.
I want calculate the hamming distance like bellow.
hammignDistance[0] = VLIB_hammindDistance( stringA[0~31], stringB[0~31] ) and
hammignDistance[1] = VLIB_hammindDistance( stringA[32~63], stringB[0~31] ).
In the function description document,
It is said that 'xSize' is number of bytes in the first dimension and 'ySize' means number of row(size of second dimension)
and the mode is '1' means 'Many-to-One', and xPitch is Number of bytes between start of each string.
In this case, I don't know the xSize and ySize, and xPitch.
What is the correct number of the parameters(xSize, ySize, xPitch, mode) to use the VLIB_hammingDistance?
I think < xSize = 32, ySize = 2, xPitch = 32, mode = 1 > like the example ( VLIB_hammingDistnace_d.c ).
Is it right or wrong?
Thank you.
Regards,
Tahk.