Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
jaro_winkler

Classes

struct  duckdb_jaro_winkler::CachedJaroWinklerSimilarity< CharT1 >
struct  duckdb_jaro_winkler::CachedJaroSimilarity< CharT1 >

Functions

template<typename InputIt1, typename InputIt2>
std::enable_if< common::is_iterator< InputIt1 >::value &&common::is_iterator< InputIt2 >::value, double >::type duckdb_jaro_winkler::jaro_winkler_similarity (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double prefix_weight=0.1, double score_cutoff=0.0)
 Calculates the jaro winkler similarity.
template<typename S1, typename S2>
double duckdb_jaro_winkler::jaro_winkler_similarity (const S1 &s1, const S2 &s2, double prefix_weight=0.1, double score_cutoff=0.0)
template<typename InputIt1, typename InputIt2>
double duckdb_jaro_winkler::jaro_similarity (InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0.0)
 Calculates the jaro similarity.
template<typename S1, typename S2>
double duckdb_jaro_winkler::jaro_similarity (const S1 &s1, const S2 &s2, double score_cutoff=0.0)

Detailed Description

Function Documentation

◆ jaro_winkler_similarity() [1/2]

template<typename InputIt1, typename InputIt2>
std::enable_if< common::is_iterator< InputIt1 >::value &&common::is_iterator< InputIt2 >::value, double >::type duckdb_jaro_winkler::jaro_winkler_similarity ( InputIt1 first1,
InputIt1 last1,
InputIt2 first2,
InputIt2 last2,
double prefix_weight = 0.1,
double score_cutoff = 0.0 )

Calculates the jaro winkler similarity.

Template Parameters
Sentence1This is a string that can be converted to basic_string_view<char_type>
Sentence2This is a string that can be converted to basic_string_view<char_type>
Parameters
s1string to compare with s2 (for type info check Template parameters above)
s2string to compare with s1 (for type info check Template parameters above)
prefix_weightWeight used for the common prefix of the two strings. Has to be between 0 and 0.25. Default is 0.1.
score_cutoffOptional argument for a score threshold as a float between 0 and 100. For similarity < score_cutoff 0 is returned instead. Default is 0, which deactivates this behaviour.
Returns
jaro winkler similarity between s1 and s2 as a float between 0 and 100
109129{
109130 if (prefix_weight < 0.0 || prefix_weight > 0.25) {
109131 throw std::invalid_argument("prefix_weight has to be between 0.0 and 0.25");
109132 }
109133
109134 return detail::jaro_winkler_similarity(first1, last1, first2, last2, prefix_weight,
109135 score_cutoff);
109136}
Here is the caller graph for this function:

◆ jaro_winkler_similarity() [2/2]

template<typename S1, typename S2>
double duckdb_jaro_winkler::jaro_winkler_similarity ( const S1 & s1,
const S2 & s2,
double prefix_weight = 0.1,
double score_cutoff = 0.0 )
109141{
109142 return jaro_winkler_similarity(std::begin(s1), std::end(s1), std::begin(s2), std::end(s2),
109143 prefix_weight, score_cutoff);
109144}
std::enable_if< common::is_iterator< InputIt1 >::value &&common::is_iterator< InputIt2 >::value, double >::type jaro_winkler_similarity(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double prefix_weight=0.1, double score_cutoff=0.0)
Calculates the jaro winkler similarity.
Definition duckdb.cpp:109127

◆ jaro_similarity() [1/2]

template<typename InputIt1, typename InputIt2>
double duckdb_jaro_winkler::jaro_similarity ( InputIt1 first1,
InputIt1 last1,
InputIt2 first2,
InputIt2 last2,
double score_cutoff = 0.0 )

Calculates the jaro similarity.

Template Parameters
Sentence1This is a string that can be converted to basic_string_view<char_type>
Sentence2This is a string that can be converted to basic_string_view<char_type>
Parameters
s1string to compare with s2 (for type info check Template parameters above)
s2string to compare with s1 (for type info check Template parameters above)
score_cutoffOptional argument for a score threshold as a float between 0 and 100. For similarity < score_cutoff 0 is returned instead. Default is 0, which deactivates this behaviour.
Returns
jaro similarity between s1 and s2 as a float between 0 and 100
109217{
109218 return detail::jaro_similarity(first1, last1, first2, last2, score_cutoff);
109219}

◆ jaro_similarity() [2/2]

template<typename S1, typename S2>
double duckdb_jaro_winkler::jaro_similarity ( const S1 & s1,
const S2 & s2,
double score_cutoff = 0.0 )
109223{
109224 return jaro_similarity(std::begin(s1), std::end(s1), std::begin(s2), std::end(s2),
109225 score_cutoff);
109226}
double jaro_similarity(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, double score_cutoff=0.0)
Calculates the jaro similarity.
Definition duckdb.cpp:109215