NCBI C++ ToolKit
Functions
vector_score.hpp File Reference
#include <corelib/ncbistd.hpp>
#include <math.h>
+ Include dependency graph for vector_score.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

template<class iterator1 , class iterator2 >
float Cosine (iterator1 iter1, iterator1 end1, iterator2 iter2, iterator2 end2)
 Cosine similarity measure. More...
 
template<class iterator1 , class iterator2 >
float Minkowski (iterator1 iter1, iterator1 end1, iterator2 iter2, iterator2 end2, size_t power)
 Minkowski similarity measure. More...
 
template<class iterator1 , class iterator2 >
float Dot (iterator1 iter1, iterator1 end1, iterator2 iter2, iterator2 end2)
 Dot-product similarity. More...
 
template<class iterator1 , class iterator2 >
float Distance (iterator1 iter1, iterator1 end1, iterator2 iter2, iterator2 end2)
 Euclidean distance measure. More...
 
template<class iterator1 , class iterator2 >
void DotAndDistance (iterator1 iter1, iterator1 end1, iterator2 iter2, iterator2 end2, float *dot_in, float *dist_in)
 Dot and distance in one step. More...
 
template<class iterator1 , class iterator2 >
float Jaccard (iterator1 iter1, iterator1 end1, iterator2 iter2, iterator2 end2)
 Jaccard similarity. More...
 
template<class iterator1 , class iterator2 >
float Dice (iterator1 iter1, iterator1 end1, iterator2 iter2, iterator2 end2)
 Dice coefficient. More...
 
template<class iterator1 , class iterator2 >
float Overlap (iterator1 iter1, iterator1 end1, iterator2 iter2, iterator2 end2)
 Overlap measure. More...
 

Function Documentation

◆ Cosine()

template<class iterator1 , class iterator2 >
float Cosine ( iterator1  iter1,
iterator1  end1,
iterator2  iter2,
iterator2  end2 
)

Cosine similarity measure.

Definition at line 46 of file vector_score.hpp.

Referenced by ScoreCosine().

◆ Dice()

template<class iterator1 , class iterator2 >
float Dice ( iterator1  iter1,
iterator1  end1,
iterator2  iter2,
iterator2  end2 
)

Dice coefficient.

Definition at line 294 of file vector_score.hpp.

References v2.

Referenced by ScoreDice().

◆ Distance()

template<class iterator1 , class iterator2 >
float Distance ( iterator1  iter1,
iterator1  end1,
iterator2  iter2,
iterator2  end2 
)

Euclidean distance measure.

Definition at line 160 of file vector_score.hpp.

Referenced by ScoreDistance().

◆ Dot()

template<class iterator1 , class iterator2 >
float Dot ( iterator1  iter1,
iterator1  end1,
iterator2  iter2,
iterator2  end2 
)

◆ DotAndDistance()

template<class iterator1 , class iterator2 >
void DotAndDistance ( iterator1  iter1,
iterator1  end1,
iterator2  iter2,
iterator2  end2,
float *  dot_in,
float *  dist_in 
)

Dot and distance in one step.

Definition at line 198 of file vector_score.hpp.

Referenced by ScoreCombined().

◆ Jaccard()

template<class iterator1 , class iterator2 >
float Jaccard ( iterator1  iter1,
iterator1  end1,
iterator2  iter2,
iterator2  end2 
)

Jaccard similarity.

Definition at line 248 of file vector_score.hpp.

References v2.

Referenced by ScoreJaccard().

◆ Minkowski()

template<class iterator1 , class iterator2 >
float Minkowski ( iterator1  iter1,
iterator1  end1,
iterator2  iter2,
iterator2  end2,
size_t  power 
)

Minkowski similarity measure.

Definition at line 89 of file vector_score.hpp.

◆ Overlap()

template<class iterator1 , class iterator2 >
float Overlap ( iterator1  iter1,
iterator1  end1,
iterator2  iter2,
iterator2  end2 
)

Overlap measure.

Definition at line 340 of file vector_score.hpp.

References min().

Referenced by ScoreOverlap().

Modified on Sun Jun 23 05:17:26 2024 by modify_doxy.py rev. 669887