A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/vector__impl_8hpp.html below:

NCBI C++ ToolKit: include/algo/text/vector_impl.hpp File Reference

#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  ScoreDistance (const ScoreVectorA &vec_a, const ScoreVectorB &vec_b)   template<class ScoreVectorA , class ScoreVectorB > float  ScoreDot (const ScoreVectorA &vec_a, const ScoreVectorB &vec_b)   template<class ScoreVectorA , class ScoreVectorB > float  ScoreJaccard (const ScoreVectorA &vec_a, const ScoreVectorB &vec_b)   The Jaccard coefficient is defined as. More...
  template<class ScoreVectorA , class ScoreVectorB > float  ScoreOverlap (const ScoreVectorA &vec_a, const ScoreVectorB &vec_b)   The overlap function is a dot product weighted by the *shortest* of each term. More...
  ◆ InitialValue() ◆ InitialValue< string >() ◆ ScoreCombined()

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  ) inline

The 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  ) inline

The 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  ) inline

The 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