Given Pointhpp Kdthpp Classes Need Help Implementing Ifndef Pointhpp Define Pointhpp Inclu Q37214078

Given Point.hpp and KDT.hpp classes I need help withimplementing the

#ifndef Point_hpp
#define Point_hpp

#include     // pow, abs
#include     // vector
#include

using namespace std;

#define DELTA 0.00005

/** The data point with given features and label **/
class Point {
public:

    vector features;
    int label;
    int numDim;
    double squareDistToQuery;

    /** Default constructor */
    Point() {}

    /** TODO: Constructor that defines a datapoint with features and certain
    label */
    Point(vector features, int label) {
      this->label = label;
      this->features = features;

    }

    /** Set the square distance to current querypoint */
    /** sets current point’s (this)squareDistToQuery member variable to calculated
     * distance between this point andqueryPoint param
     * @param

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.