Defines |
#define | SECRET_NUM -1234 |
#define | TWO_PI 6.2831853071795864769252866 |
Functions |
int | alphanum_to_int (char c) |
char * | basecfg (char *cfgfile) |
float | constrain (float min, float max, float a) |
int | constrain_int (int a, int min, int max) |
char * | copy_string (char *s) |
int | count_fields (char *line) |
float | dist_array (float *a, float *b, int n, int sub) |
void | error (const char *s) |
char * | fgetl (FILE *fp) |
void | file_error (char *s) |
int | find_arg (int argc, char *argv[], char *arg) |
char * | find_char_arg (int argc, char **argv, char *arg, char *def) |
float | find_float_arg (int argc, char **argv, char *arg, float def) |
int | find_int_arg (int argc, char **argv, char *arg, int def) |
void | find_replace (char *str, char *orig, char *rep, char *output) |
void | free_ptrs (void **ptrs, int n) |
char | int_to_alphanum (int i) |
float | mag_array (float *a, int n) |
void | malloc_error () |
int | max_index (float *a, int n) |
float | mean_array (float *a, int n) |
void | mean_arrays (float **a, int n, int els, float *avg) |
float | mse_array (float *a, int n) |
void | normalize_array (float *a, int n) |
float ** | one_hot_encode (float *a, int n, int k) |
list * | parse_csv_line (char *line) |
float * | parse_fields (char *line, int n) |
void | print_statistics (float *a, int n) |
int | rand_int (int min, int max) |
float | rand_normal () |
float | rand_scale (float s) |
size_t | rand_size_t () |
float | rand_uniform (float min, float max) |
void | read_all (int fd, char *buffer, size_t bytes) |
int | read_all_fail (int fd, char *buffer, size_t bytes) |
int | read_int (int fd) |
int * | read_map (char *filename) |
int | sample_array (float *a, int n) |
void | scale_array (float *a, int n, float s) |
float | sec (clock_t clocks) |
void | shuffle (void *arr, size_t n, size_t size) |
void | sorta_shuffle (void *arr, size_t n, size_t size, size_t sections) |
list * | split_str (char *s, char delim) |
void | strip (char *s) |
void | strip_char (char *s, char bad) |
float | sum_array (float *a, int n) |
void | top_k (float *a, int n, int k, int *index) |
void | translate_array (float *a, int n, float s) |
float | variance_array (float *a, int n) |
void | write_all (int fd, char *buffer, size_t bytes) |
int | write_all_fail (int fd, char *buffer, size_t bytes) |
void | write_int (int fd, int n) |