20#ifndef SATYR_DISTANCE_H
21#define SATYR_DISTANCE_H
51 SR_DISTANCE_JARO_WINKLER,
76 SR_DISTANCE_LEVENSHTEIN,
83 SR_DISTANCE_DAMERAU_LEVENSHTEIN,
90sr_distance(
enum sr_distance_type distance_type,
186 enum sr_distance_type dist_type);
205 enum sr_distance_type dist_type;
221 int m_begin,
int n_begin,
size_t len);
struct sr_distances_part * sr_distances_part_create(int m, int n, enum sr_distance_type dist_type, unsigned nparts)
struct sr_distances * sr_distances_dup(struct sr_distances *distances)
void sr_distances_part_compute(struct sr_distances_part *part, struct sr_thread **threads)
struct sr_distances * sr_distances_part_merge(struct sr_distances_part *parts)
struct sr_distances * sr_distances_new(int m, int n)
struct sr_distances * sr_threads_compare(struct sr_thread **threads, int m, int n, enum sr_distance_type dist_type)
struct sr_distances_part * sr_distances_part_new(int m, int n, enum sr_distance_type dist_type, int m_begin, int n_begin, size_t len)
void sr_distances_set_distance(struct sr_distances *distances, int i, int j, float d)
void sr_distances_free(struct sr_distances *distances)
void sr_distances_part_free(struct sr_distances_part *part, bool follow_links)
float sr_distances_get_distance(struct sr_distances *distances, int i, int j)
A part of a distance matrix to be computed (possibly in different threads/processes and even differen...
A distance matrix of stack trace threads.