c++11mlpack

using distance metric in MLpack


I want to use ML pack distance metrics to evaluate distance.

I have two arma:vec. Need to find distance between the two vec.

mlpack::metric::EuclideanDistance distance();

cout<<distance.Evaluate(temp_vec2, temp_vec2);

Not sure how to use this.


Solution

  • mlpack::metric::EuclideanDistance distance;

    instead of

    mlpack::metric::EuclideanDistance distance();

    works