I have two variables containing an array of 300-dimensional vectors called a
and b
. Of which the minimal value is -10.0
and the max value is 10.0
per vector value.
My goal is to visualize the distance in a two-dimensional space.
The Problem
Visualizing in one dimension is relatively easy. I take the vectors of a
and vectors of b
, calculate the Euclidean distance and I can visualize over one dimension. But I now want to visualize over an x-axis and an y-axis.
Pseudo Python
a = [0.1, 0.343423, -2.9008, etc...]
b = [-0.3455, -6.03983, 9.098, etc...]
distance = calculateEuclidean(a, b)
print(distance) # 6.39878 | this is 1 dimension... How to make it 2?
Examples in any programming language are welcome :-)
PS:
My question is not about how to calculate the Euclidean distance (Stackoverflow is full of it) but rather how to express it in two rather than one dimension.