12 #ifndef _JLCTPOINT_H__
13 #define _JLCTPOINT_H__
68 v[v.
index++] = new_ele;
97 return stack[--stack.index];
147 SG_SERROR(
"lhs != rhs but the distance of two points "
148 "from the same container has been requested\n");
160 SG_SERROR(
"lhs == rhs but the distance of two points "
161 "from different containers has been requested\n");
178 SG_SERROR(
"Something has gone wrong, case not handled\n")
187 features = distance->
get_lhs();
189 features = distance->
get_rhs();
200 push(parsed, new_point);
209 SG_SERROR(
"Print JLCoverTreePoint not implemented\n")
float distance(CJLCoverTreePoint p1, CJLCoverTreePoint p2, float64_t upper_bound)
Class Distance, a base class for all the distances used in the Shogun toolbox.
Class v_array taken directly from JL's implementation.
virtual int32_t get_num_vectors() const =0
virtual float64_t distance_upper_bounded(int32_t idx_a, int32_t idx_b, float64_t upper_bound)
v_array< T > pop(v_array< v_array< T > > &stack)
Class Point to use with John Langford's CoverTree. This class must have some assoficated functions de...
v_array< CJLCoverTreePoint > parse_points(CDistance *distance, EFeaturesContainer fc)
void push(v_array< T > &v, const T &new_ele)
EFeaturesContainer m_features_container
void print(CJLCoverTreePoint &p)
void alloc(v_array< T > &v, int length)
T & operator[](unsigned int i)
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.