Euclidean distance between two vectors of complex numbers
32 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Geetika
el 8 de En. de 2014
Comentada: dhruv jain
el 5 de Mayo de 2017
I have two vectors of complex numbers and want to compute Euclidean distance between them. whether I should use d = norm(A - B) or d = norm(abs(A) - abs(B))
0 comentarios
Respuesta aceptada
Matt J
el 8 de En. de 2014
Editada: Matt J
el 8 de En. de 2014
Suppose you have
>> A=1-i; B=1+i;
Which result do you consider correct,
>> d = norm(A - B) ,
d =
2
or
>> d = norm(abs(A) - abs(B))
d =
0
5 comentarios
Matt J
el 8 de En. de 2014
Editada: Matt J
el 8 de En. de 2014
What about when A=1, B=-1. Do you again want to consider their distance to be zero?
In any case, this is not a general question that anyone but you can know the answer to. This is driven by the needs of your specific application and so only you know what is right for that.
dhruv jain
el 5 de Mayo de 2017
Considering you are working on feature vectors which give complex numbers then you should consider euclidean distance
Más respuestas (0)
Ver también
Categorías
Más información sobre Genomics and Next Generation Sequencing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!