Just a little extension of the previous posting about
static polymorphism . Here, I define two different types of distances:
- Distance euclidean d
- Distance cosine d
Both of them works on generic type vectors. In the example, I leveraged boost dense vectors, but you can play with other type of vectors as well.
Here the
code
No comments:
Post a Comment