/** * Creates a new leaf node for a given Instance/point p. * * @param idx The index of the instance this leaf node represents. * @return Newly created leaf CoverTreeNode. */ protected CoverTreeNode new_leaf(Integer idx) { // (const point &p) CoverTreeNode new_leaf = new CoverTreeNode(idx, 0.0, 0.0, null, 0, 100); return new_leaf; }
/** * Creates a new internal node for a given Instance/point p. * * @param idx The index of the instance the node represents. * @return Newly created CoverTreeNode. */ protected CoverTreeNode new_node(Integer idx) { // const point &p) CoverTreeNode new_node = new CoverTreeNode(); new_node.idx = idx; return new_node; }
/** * Creates a new leaf node for a given Instance/point p. * * @param idx The index of the instance this leaf node represents. * @return Newly created leaf CoverTreeNode. */ protected CoverTreeNode new_leaf(Integer idx) { // (const point &p) CoverTreeNode new_leaf = new CoverTreeNode(idx, 0.0, 0.0, null, 0, 100); return new_leaf; }
/** * Creates a new internal node for a given Instance/point p. * * @param idx The index of the instance the node represents. * @return Newly created CoverTreeNode. */ protected CoverTreeNode new_node(Integer idx) { // const point &p) CoverTreeNode new_node = new CoverTreeNode(); new_node.idx = idx; return new_node; }