13 #ifndef _biomcmc_distance_generator_h_ 14 #define _biomcmc_distance_generator_h_ 22 int n_samples, n_distances;
27 void (*distance_function) (
void*, int, int,
double*);
31 distance_generator new_distance_generator (
int n_samples,
int n_distances);
32 void del_distance_generator (distance_generator d);
33 double distance_generator_get_at_distance (distance_generator d,
int i,
int j,
int which_distance);
34 double distance_generator_get (distance_generator d,
int i,
int j);
41 void distance_generator_reset (distance_generator d);
void distance_generator_set_function_data(distance_generator d, void(*lowlevel_dist_funct)(void *, int, int, double *), void *extra_data)
defines distance calculation function wrapper, and all extra data needed by wrapper; no check is done...
Definition: distance_generator.c:69
distance matrix, that can be used in alignments and trees, and patristic-distance based species dista...
Definition: distance_generator.h:20
void distance_generator_set_which_distance(distance_generator d, int which_distance)
distance wrapper may return several distances, but only one is returned by get(); this sets which one...
Definition: distance_generator.c:76