Metrics that help calculate the distance or similarity between two vectors are called deviation metrics. These metrics help us understand the relationship between the different vectors and the data in them.
You have to have the
StatsBase package ready. This can be done by running
using StatsBase in the REPL.
For example, consider the two vectors: a = [1, 2, 3, 4, 5, 6] and b = [4, 2, 3, 5, 6, 7].
The elements at the second and third indexes are equal to each other, so they will be returned as a result of the
The output would look like ...