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
duckdb_jaro_winkler::CachedJaroWinklerSimilarity< CharT1 > Struct Template Reference
Collaboration diagram for duckdb_jaro_winkler::CachedJaroWinklerSimilarity< CharT1 >:

Public Member Functions

template<typename InputIt1>
 CachedJaroWinklerSimilarity (InputIt1 first1, InputIt1 last1, double prefix_weight_=0.1)
template<typename S1>
 CachedJaroWinklerSimilarity (const S1 &s1_, double prefix_weight_=0.1)
template<typename InputIt2>
double similarity (InputIt2 first2, InputIt2 last2, double score_cutoff=0) const
template<typename S2>
double similarity (const S2 &s2, double score_cutoff=0) const
template<typename InputIt2>
double normalized_similarity (InputIt2 first2, InputIt2 last2, double score_cutoff=0) const
template<typename S2>
double normalized_similarity (const S2 &s2, double score_cutoff=0) const

Private Attributes

std::basic_string< CharT1 > s1
common::BlockPatternMatchVector PM
double prefix_weight

Constructor & Destructor Documentation

◆ CachedJaroWinklerSimilarity() [1/2]

template<typename CharT1>
template<typename InputIt1>
duckdb_jaro_winkler::CachedJaroWinklerSimilarity< CharT1 >::CachedJaroWinklerSimilarity ( InputIt1 first1,
InputIt1 last1,
double prefix_weight_ = 0.1 )
inline
109150 : s1(first1, last1), PM(first1, last1), prefix_weight(prefix_weight_)
109151 {
109153 throw std::invalid_argument("prefix_weight has to be between 0.0 and 0.25");
109154 }
109155 }

◆ CachedJaroWinklerSimilarity() [2/2]

template<typename CharT1>
template<typename S1>
duckdb_jaro_winkler::CachedJaroWinklerSimilarity< CharT1 >::CachedJaroWinklerSimilarity ( const S1 & s1_,
double prefix_weight_ = 0.1 )
inline
109159 : CachedJaroWinklerSimilarity(std::begin(s1_), std::end(s1_), prefix_weight_)
109160 {}

Member Function Documentation

◆ similarity() [1/2]

template<typename CharT1>
template<typename InputIt2>
double duckdb_jaro_winkler::CachedJaroWinklerSimilarity< CharT1 >::similarity ( InputIt2 first2,
InputIt2 last2,
double score_cutoff = 0 ) const
inline
109164 {
109166 prefix_weight, score_cutoff);
109167 }

◆ similarity() [2/2]

template<typename CharT1>
template<typename S2>
double duckdb_jaro_winkler::CachedJaroWinklerSimilarity< CharT1 >::similarity ( const S2 & s2,
double score_cutoff = 0 ) const
inline
109171 {
109172 return similarity(std::begin(s2), std::end(s2), score_cutoff);
109173 }

◆ normalized_similarity() [1/2]

template<typename CharT1>
template<typename InputIt2>
double duckdb_jaro_winkler::CachedJaroWinklerSimilarity< CharT1 >::normalized_similarity ( InputIt2 first2,
InputIt2 last2,
double score_cutoff = 0 ) const
inline
109177 {
109178 return similarity(first2, last2, score_cutoff);
109179 }

◆ normalized_similarity() [2/2]

template<typename CharT1>
template<typename S2>
double duckdb_jaro_winkler::CachedJaroWinklerSimilarity< CharT1 >::normalized_similarity ( const S2 & s2,
double score_cutoff = 0 ) const
inline
109183 {
109184 return similarity(s2, score_cutoff);
109185 }

The documentation for this struct was generated from the following file: