#include "vector_score.hpp"
#include <algorithm>
#include <math.h>
#include <set>
#include <corelib/ncbiutil.hpp>
Go to the source code of this file.
Go to the SVN repository for this file.
template<class T > T InitialValue (T *) template<> string InitialValue< string > (string *) template<class ScoreVectorA , class ScoreVectorB > float ScoreCombined (const ScoreVectorA &vec1, const ScoreVectorB &vec2) template<class ScoreVectorA , class ScoreVectorB > float ScoreCosine (const ScoreVectorA &vec1, const ScoreVectorB &vec2) template<class ScoreVectorA , class ScoreVectorB > float ScoreDice (const ScoreVectorA &vec_a, const ScoreVectorB &vec_b) The dice coefficient is defined as. More...template<class ScoreVectorA , class ScoreVectorB >
float ScoreCombined ( const ScoreVectorA & vec1, const ScoreVectorB & vec2 ) inline ◆ ScoreCosine()template<class ScoreVectorA , class ScoreVectorB >
float ScoreCosine ( const ScoreVectorA & vec1, const ScoreVectorB & vec2 ) inline ◆ ScoreDice()template<class ScoreVectorA , class ScoreVectorB >
float ScoreDice ( const ScoreVectorA & vec_a, const ScoreVectorB & vec_b ) inlineThe dice coefficient is defined as.
d = (dot) / (sum(scores_a) + sum(scores_b))
Definition at line 1220 of file vector_impl.hpp.
References Dice().
◆ ScoreDistance()template<class ScoreVectorA , class ScoreVectorB >
float ScoreDistance ( const ScoreVectorA & vec_a, const ScoreVectorB & vec_b ) inline ◆ ScoreDot()template<class ScoreVectorA , class ScoreVectorB >
float ScoreDot ( const ScoreVectorA & vec_a, const ScoreVectorB & vec_b ) inline ◆ ScoreJaccard()template<class ScoreVectorA , class ScoreVectorB >
float ScoreJaccard ( const ScoreVectorA & vec_a, const ScoreVectorB & vec_b ) inlineThe Jaccard coefficient is defined as.
d = (dot) / (sum(scores_a)^2 + sum(scores_b)^2 - dot)
Definition at line 1253 of file vector_impl.hpp.
References Jaccard().
◆ ScoreOverlap()template<class ScoreVectorA , class ScoreVectorB >
float ScoreOverlap ( const ScoreVectorA & vec_a, const ScoreVectorB & vec_b ) inlineThe overlap function is a dot product weighted by the *shortest* of each term.
Definition at line 1266 of file vector_impl.hpp.
References Overlap().
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4