liblevenshtein
4.0.0
A library for generating Finite State Transducers based on Levenshtein Automata.
Loading...
Searching...
No Matches
standard_distance.h
Go to the documentation of this file.
1
#ifndef LIBLEVENSHTEIN_DISTANCE_STANDARD_DISTANCE_H
2
#define LIBLEVENSHTEIN_DISTANCE_STANDARD_DISTANCE_H
3
4
#include <string>
5
6
#include "
liblevenshtein/distance/memoized_distance.h
"
7
8
namespace
liblevenshtein::distance
{
9
14
class
StandardDistance
:
public
MemoizedDistance
{
15
public
:
16
auto
between
(std::string
v
, std::string
w
) -> std::size_t
override
;
17
};
18
19
}
// namespace liblevenshtein::distance
20
21
#endif
// LIBLEVENSHTEIN_DISTANCE_STANDARD_DISTANCE_H
liblevenshtein::distance::MemoizedDistance
Memoizes the distance between pairs of terms.
Definition
memoized_distance.h:16
liblevenshtein::distance::StandardDistance
Computes the standard Levenshtein distance, which includes the elementary operations of insertion,...
Definition
standard_distance.h:14
liblevenshtein::distance::StandardDistance::between
auto between(std::string v, std::string w) -> std::size_t override
Measures the edit distance between two terms.
Definition
standard_distance.cpp:6
query
void query(ll::Dawg *dawg, const std::string &query_term, std::size_t max_distance)
Definition
main.cpp:25
memoized_distance.h
liblevenshtein::distance
Memoized, recursive distance metrics typically used to evaluate the correctness of Levenshtein automa...
Definition
namespaces.dox:16
src
liblevenshtein
distance
standard_distance.h
Generated by
1.10.0