48 "Incorrect check outcome for correct");
74 "Incorrect check outcome for gap");
100 "Incorrect check outcome for gaps");
126 "Incorrect check outcome for shift");
Minimal unit testing framework for C.
#define Calloc(type, size)
#define mu_assert(test, message)
bool gensvm_check_outcome_contiguous(struct GenData *data)
Check if the labels are contiguous on [1 .. K].
#define mu_run_test(test)
Header file for gensvm_checks.c.
long * y
array of class labels, 1..K
A structure to represent the data.
char * test_check_outcome_contiguous_correct()
char * test_check_outcome_contiguous_shift()
char * test_check_outcome_contiguous_gaps()
void gensvm_free_data(struct GenData *data)
Free allocated GenData struct.
long n
number of instances
char * test_check_outcome_contiguous_gap()
struct GenData * gensvm_init_data(void)
Initialize a GenData structure.