Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.20 KB | None | 0 0
  1. pbrunet@picviz-02:/home/cbodin/Workspace_Qt/Qt_GLSL/classification$ sudo clang++ pieceoforangepeel.cpp $(pkg-config --cflags --libs Qt5Core Qt5Gui libxml-2.0) -fPIE
  2.  
  3. In file included from pieceoforangepeel.cpp:69:
  4. In file included from /usr/include/mlpack/methods/kmeans/kmeans.hpp:206:
  5. /usr/include/mlpack/methods/kmeans/kmeans_impl.hpp:154:34: error: no matching member function for call to 'Evaluate'
  6. double distance = metric.Evaluate(data.col(i), centroids.col(j));
  7. ~~~~~~~^~~~~~~~
  8. /usr/include/mlpack/methods/kmeans/kmeans_impl.hpp:87:3: note: in instantiation of function template specialization 'mlpack::kmeans::KMeans<mlpack::metric::MahalanobisDistance<false>, mlpack::kmeans::RandomPartition,
  9. mlpack::kmeans::MaxVarianceNewCluster>::Cluster<arma::Mat<double> >' requested here
  10. Cluster(data, clusters, assignments, centroids, initialGuess);
  11. ^
  12. pieceoforangepeel.cpp:95:7: note: in instantiation of function template specialization 'mlpack::kmeans::KMeans<mlpack::metric::MahalanobisDistance<false>, mlpack::kmeans::RandomPartition, mlpack::kmeans::MaxVarianceNewCluster>::Cluster<arma::Mat<double> >' requested here
  13. k.Cluster(data, 6, assignments);
  14. ^
  15. /usr/include/mlpack/core/metrics/mahalanobis_distance_impl.hpp:35:36: note: candidate function not viable: 'this' argument has type 'const mlpack::metric::MahalanobisDistance<false>', but method is not marked const
  16. double MahalanobisDistance<false>::Evaluate(const VecType1& a,
  17. ^
  18. In file included from pieceoforangepeel.cpp:69:
  19. In file included from /usr/include/mlpack/methods/kmeans/kmeans.hpp:206:
  20. /usr/include/mlpack/methods/kmeans/kmeans_impl.hpp:210:34: error: no matching member function for call to 'Evaluate'
  21. double distance = metric.Evaluate(data.col(i), centroids.col(j));
  22. ~~~~~~~^~~~~~~~
  23. /usr/include/mlpack/core/metrics/mahalanobis_distance_impl.hpp:35:36: note: candidate function not viable: 'this' argument has type 'const mlpack::metric::MahalanobisDistance<false>', but method is not marked const
  24. double MahalanobisDistance<false>::Evaluate(const VecType1& a,
  25. ^
  26. In file included from pieceoforangepeel.cpp:69:
  27. In file included from /usr/include/mlpack/methods/kmeans/kmeans.hpp:206:
  28. /usr/include/mlpack/methods/kmeans/kmeans_impl.hpp:282:31: error: no matching member function for call to 'Evaluate'
  29. distances(i) = metric.Evaluate(centroids.col(first),
  30. ~~~~~~~^~~~~~~~
  31. /usr/include/mlpack/core/metrics/mahalanobis_distance_impl.hpp:35:36: note: candidate function not viable: 'this' argument has type 'const mlpack::metric::MahalanobisDistance<false>', but method is not marked const
  32. double MahalanobisDistance<false>::Evaluate(const VecType1& a,
  33. ^
  34. In file included from pieceoforangepeel.cpp:69:
  35. In file included from /usr/include/mlpack/methods/kmeans/kmeans.hpp:206:
  36. /usr/include/mlpack/methods/kmeans/kmeans_impl.hpp:326:60: error: no matching member function for call to 'Evaluate'
  37. distances(offset + (first - cluster)) = metric.Evaluate(
  38. ~~~~~~~^~~~~~~~
  39. /usr/include/mlpack/core/metrics/mahalanobis_distance_impl.hpp:35:36: note: candidate function not viable: 'this' argument has type 'const mlpack::metric::MahalanobisDistance<false>', but method is not marked const
  40. double MahalanobisDistance<false>::Evaluate(const VecType1& a,
  41. ^
  42. In file included from pieceoforangepeel.cpp:69:
  43. In file included from /usr/include/mlpack/methods/kmeans/kmeans.hpp:206:
  44. /usr/include/mlpack/methods/kmeans/kmeans_impl.hpp:341:58: error: no matching member function for call to 'Evaluate'
  45. distances(offset + (cluster - first)) = metric.Evaluate(
  46. ~~~~~~~^~~~~~~~
  47. /usr/include/mlpack/core/metrics/mahalanobis_distance_impl.hpp:35:36: note: candidate function not viable: 'this' argument has type 'const mlpack::metric::MahalanobisDistance<false>', but method is not marked const
  48. double MahalanobisDistance<false>::Evaluate(const VecType1& a,
  49. ^
  50. 5 errors generated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement