#include <feature_utils.h>
|
static int | overlap (const std::vector< std::string > &v1, const std::vector< std::string > &v2) |
|
static double | overlapD (const std::vector< std::string > &v1, const std::vector< std::string > &v2) |
|
static int | tripletMin (int a, int b, int c) |
|
static double | levDist (const std::string &v1, const std::string &v2) |
|
static double | jaccard (const std::vector< std::string > &v1, const std::vector< std::string > &v2) |
|
static double | jaccard (const std::vector< std::string > &v1, const std::vector< std::string > &v2, int ovlp) |
|
static double | cosine (const std::vector< std::string > &v1, const std::vector< std::string > &v2) |
|
static double | cosine (const std::vector< std::string > &v1, const std::vector< std::string > &v2, int ovlp) |
|
static double | dice (const std::vector< std::string > &v1, const std::vector< std::string > &v2) |
|
static double | dice (const std::vector< std::string > &v1, const std::vector< std::string > &v2, int ovlp) |
|
static double | overlapCoeff (const std::vector< std::string > &v1, const std::vector< std::string > &v2) |
|
static double | overlapCoeff (const std::vector< std::string > &v1, const std::vector< std::string > &v2, int ovlp) |
|
static double | exactMatch (const std::string &s1, const std::string &s2) |
|
static double | absoluteNorm (const std::string &s1, const std::string &s2) |
|
static void | stringSplit (std::string str, char delim, std::vector< std::string > &res) |
|
static void | tokenize (const std::string &str, TokenizerType type, std::vector< std::string > &tokens) |
|
|
static std::string | delims = " \"\',\\\t\r\n" |
|
static double | NaN = -19260817.0 |
|
◆ FeatureUtils() [1/3]
FeatureUtils::FeatureUtils |
( |
| ) |
|
|
default |
◆ ~FeatureUtils()
FeatureUtils::~FeatureUtils |
( |
| ) |
|
|
default |
◆ FeatureUtils() [2/3]
◆ FeatureUtils() [3/3]
◆ absoluteNorm()
double FeatureUtils::absoluteNorm |
( |
const std::string & | s1, |
|
|
const std::string & | s2 ) |
|
static |
◆ cosine() [1/2]
double FeatureUtils::cosine |
( |
const std::vector< std::string > & | v1, |
|
|
const std::vector< std::string > & | v2 ) |
|
static |
◆ cosine() [2/2]
double FeatureUtils::cosine |
( |
const std::vector< std::string > & | v1, |
|
|
const std::vector< std::string > & | v2, |
|
|
int | ovlp ) |
|
static |
◆ dice() [1/2]
double FeatureUtils::dice |
( |
const std::vector< std::string > & | v1, |
|
|
const std::vector< std::string > & | v2 ) |
|
static |
◆ dice() [2/2]
double FeatureUtils::dice |
( |
const std::vector< std::string > & | v1, |
|
|
const std::vector< std::string > & | v2, |
|
|
int | ovlp ) |
|
static |
◆ exactMatch()
double FeatureUtils::exactMatch |
( |
const std::string & | s1, |
|
|
const std::string & | s2 ) |
|
static |
◆ jaccard() [1/2]
double FeatureUtils::jaccard |
( |
const std::vector< std::string > & | v1, |
|
|
const std::vector< std::string > & | v2 ) |
|
static |
◆ jaccard() [2/2]
double FeatureUtils::jaccard |
( |
const std::vector< std::string > & | v1, |
|
|
const std::vector< std::string > & | v2, |
|
|
int | ovlp ) |
|
static |
◆ levDist()
double FeatureUtils::levDist |
( |
const std::string & | v1, |
|
|
const std::string & | v2 ) |
|
static |
◆ overlap()
int FeatureUtils::overlap |
( |
const std::vector< std::string > & | v1, |
|
|
const std::vector< std::string > & | v2 ) |
|
static |
◆ overlapCoeff() [1/2]
double FeatureUtils::overlapCoeff |
( |
const std::vector< std::string > & | v1, |
|
|
const std::vector< std::string > & | v2 ) |
|
static |
◆ overlapCoeff() [2/2]
double FeatureUtils::overlapCoeff |
( |
const std::vector< std::string > & | v1, |
|
|
const std::vector< std::string > & | v2, |
|
|
int | ovlp ) |
|
static |
◆ overlapD()
double FeatureUtils::overlapD |
( |
const std::vector< std::string > & | v1, |
|
|
const std::vector< std::string > & | v2 ) |
|
static |
◆ stringSplit()
void FeatureUtils::stringSplit |
( |
std::string | str, |
|
|
char | delim, |
|
|
std::vector< std::string > & | res ) |
|
static |
◆ tokenize()
void FeatureUtils::tokenize |
( |
const std::string & | str, |
|
|
TokenizerType | type, |
|
|
std::vector< std::string > & | tokens ) |
|
static |
◆ tripletMin()
int FeatureUtils::tripletMin |
( |
int | a, |
|
|
int | b, |
|
|
int | c ) |
|
static |
◆ delims
std::string FeatureUtils::delims = " \"\',\\\t\r\n" |
|
static |
◆ NaN
double FeatureUtils::NaN = -19260817.0 |
|
static |
The documentation for this class was generated from the following files: