21 #ifndef _biomcmc_empirical_frequency_h_ 22 #define _biomcmc_empirical_frequency_h_ 59 void sort_empfreq_decreasing (empfreq ef);
60 void sort_empfreq_increasing (empfreq ef);
61 void sort_empfreq_double_decreasing (empfreq_double efd);
62 void sort_empfreq_double_increasing (empfreq_double efd);
64 empfreq new_empfreq (
int n_elements);
65 void del_empfreq (empfreq ef);
66 empfreq_double new_empfreq_double (
int n_elements);
67 void del_empfreq_double (empfreq_double efd);
69 empfreq new_empfreq_sort_decreasing (
void *vec,
int n,
char type);
70 empfreq new_empfreq_sort_increasing (
void *vec,
int n,
char type);
71 empfreq_double new_empfreq_double_sort_decreasing (
double *vec,
int n);
72 empfreq_double new_empfreq_double_sort_increasing (
double *vec,
int n);
74 empfreq new_empfreq_from_int (
int *vec,
int n);
75 empfreq new_empfreq_from_int_weighted (
int *vec,
int n,
int *weight);
76 int find_mode_int (
int *vec,
int n);
77 int find_mode_int_weighted (
int *vec,
int n,
int *weight);
int max
Min value for index.
Definition: empirical_frequency.h:46
Definition: empirical_frequency.h:29
Definition: empirical_frequency.h:35
Definition: empirical_frequency.h:41
Definition: empirical_frequency.h:50
int ref_counter
Max value for index.
Definition: empirical_frequency.h:56
double max
Min value for index.
Definition: empirical_frequency.h:55
list of strings (each string is a vector of chars)
int ref_counter
Max value for index.
Definition: empirical_frequency.h:47