|
SHOGUN
v1.1.0
|
class SparseEucldianDistance
Definition at line 22 of file SparseEuclidianDistance.h.

Public Member Functions | |
| CSparseEuclidianDistance () | |
| CSparseEuclidianDistance (CSparseFeatures< float64_t > *l, CSparseFeatures< float64_t > *r) | |
| virtual | ~CSparseEuclidianDistance () |
| virtual bool | init (CFeatures *l, CFeatures *r) |
| virtual void | cleanup () |
| virtual EDistanceType | get_distance_type () |
| virtual EFeatureType | get_feature_type () |
| virtual const char * | get_name () const |
Public Member Functions inherited from CSparseDistance< float64_t > | |
| CSparseDistance () | |
| virtual EFeatureClass | get_feature_class () |
Public Member Functions inherited from CDistance | |
| CDistance () | |
| CDistance (CFeatures *lhs, CFeatures *rhs) | |
| virtual | ~CDistance () |
| float64_t | distance (int32_t idx_a, int32_t idx_b) |
| SGMatrix< float64_t > | get_distance_matrix () |
| virtual float64_t * | get_distance_matrix_real (int32_t &m, int32_t &n, float64_t *target) |
| virtual float32_t * | get_distance_matrix_shortreal (int32_t &m, int32_t &n, float32_t *target) |
| void | load (CFile *loader) |
| void | save (CFile *writer) |
| CFeatures * | get_lhs () |
| CFeatures * | get_rhs () |
| CFeatures * | replace_rhs (CFeatures *rhs) |
| virtual void | remove_lhs_and_rhs () |
| virtual void | remove_lhs () |
| takes all necessary steps if the lhs is removed from distance matrix | |
| virtual void | remove_rhs () |
| takes all necessary steps if the rhs is removed from distance matrix | |
| bool | get_precompute_matrix () |
| virtual void | set_precompute_matrix (bool flag) |
| int32_t | get_num_vec_lhs () |
| int32_t | get_num_vec_rhs () |
| bool | has_features () |
| bool | lhs_equals_rhs () |
Public Member Functions inherited from CSGObject | |
| CSGObject () | |
| CSGObject (const CSGObject &orig) | |
| virtual | ~CSGObject () |
| virtual bool | is_generic (EPrimitiveType *generic) const |
| template<class T > | |
| void | set_generic () |
| void | unset_generic () |
| virtual void | print_serializable (const char *prefix="") |
| virtual bool | save_serializable (CSerializableFile *file, const char *prefix="") |
| virtual bool | load_serializable (CSerializableFile *file, const char *prefix="") |
| void | set_global_io (SGIO *io) |
| SGIO * | get_global_io () |
| void | set_global_parallel (Parallel *parallel) |
| Parallel * | get_global_parallel () |
| void | set_global_version (Version *version) |
| Version * | get_global_version () |
| SGVector< char * > | get_modelsel_names () |
| char * | get_modsel_param_descr (const char *param_name) |
| index_t | get_modsel_param_index (const char *param_name) |
Protected Member Functions | |
| virtual float64_t | compute (int32_t idx_a, int32_t idx_b) |
Protected Attributes | |
| float64_t * | sq_lhs |
| float64_t * | sq_rhs |
Additional Inherited Members | |
Public Attributes inherited from CSGObject | |
| SGIO * | io |
| Parallel * | parallel |
| Version * | version |
| Parameter * | m_parameters |
| Parameter * | m_model_selection_parameters |
Static Protected Member Functions inherited from CDistance | |
| static void * | run_distance_thread (void *p) |
| run distance thread | |
default constructor
Definition at line 19 of file SparseEuclidianDistance.cpp.
| CSparseEuclidianDistance | ( | CSparseFeatures< float64_t > * | l, |
| CSparseFeatures< float64_t > * | r | ||
| ) |
constructor
| l | features of left-hand side |
| r | features of right-hand side |
Definition at line 25 of file SparseEuclidianDistance.cpp.
|
virtual |
Definition at line 33 of file SparseEuclidianDistance.cpp.
|
virtual |
cleanup distance
Implements CSparseDistance< float64_t >.
Definition at line 58 of file SparseEuclidianDistance.cpp.
|
protectedvirtual |
compute kernel function for features a and b idx_{a,b} denote the index of the feature vectors in the corresponding feature object
Implements CDistance.
Definition at line 68 of file SparseEuclidianDistance.cpp.
|
virtual |
get distance type we are
Implements CSparseDistance< float64_t >.
Definition at line 52 of file SparseEuclidianDistance.h.
|
virtual |
get supported feature type
Reimplemented from CSparseDistance< float64_t >.
Definition at line 58 of file SparseEuclidianDistance.h.
|
virtual |
get name of the distance
Reimplemented from CSparseDistance< float64_t >.
Definition at line 64 of file SparseEuclidianDistance.h.
init distance
| l | features of left-hand side |
| r | features of right-hand side |
Reimplemented from CSparseDistance< float64_t >.
Definition at line 38 of file SparseEuclidianDistance.cpp.
|
protected |
squared left-hand side
Definition at line 78 of file SparseEuclidianDistance.h.
|
protected |
squared right-hand side
Definition at line 80 of file SparseEuclidianDistance.h.