Gaia
gaia2::SemanticClassifierDistance Class Reference

: desc is wrong, still the wpearson one... More...

#include <semanticclassifierdistance.h>

Inheritance diagram for gaia2::SemanticClassifierDistance:
gaia2::DistanceFunction

Public Member Functions

 SemanticClassifierDistance (const PointLayout &layout, const ParameterMap &params)
 
Real operator() (const Point &p1, const Point &p2, int seg1, int seg2) const
 This function computes the distance between the two given points. More...
 
- Public Member Functions inherited from gaia2::DistanceFunction
 DistanceFunction (const PointLayout &layout, const ParameterMap &params)
 
const PointLayoutlayout () const
 
const RegioncheckFixedLength (const Region &region) const
 Checks that the given Region only contains fixed-length descriptors and throws an exception if not. More...
 

Protected Attributes

Array< DimWeight > _fixedl
 
Real _alpha
 
Real _beta
 
- Protected Attributes inherited from gaia2::DistanceFunction
PointLayout _layout
 
ParameterMap _params
 
Region _region
 

Additional Inherited Members

- Public Attributes inherited from gaia2::DistanceFunction
QString name
 Name for the metric, usually the key that was used to instantiate it from the factory.
 
QStringList validParams
 List of valid parameters this analyzer accepts. More...
 

Detailed Description

: desc is wrong, still the wpearson one...

This class computes the semantic classifier distance between 2 points. It is defined as $ d (X,Y) = \sum{w_i\frac{e^{(x_i-y_i)^{\alpha}}}{\beta+e^{x_i+y_i}}} $

the alpha coefficient in the above formula the beta coefficient in the above formula

Parameters
weightsa mapping from descriptor name to its weight.

Member Function Documentation

Real SemanticClassifierDistance::operator() ( const Point p1,
const Point p2,
int  seg1,
int  seg2 
) const
virtual

This function computes the distance between the two given points.

It needs to be implemented in each subclass. It takes as optional arguments the number of the segments on which to operate.

Implements gaia2::DistanceFunction.


The documentation for this class was generated from the following files: