#ifndef SCRAPPIE_H
#define SCRAPPIE_H

#ifdef __cplusplus
extern "C" {
#endif

#include <immintrin.h>
#include <stdbool.h>



/*  Structure definitions from scrappie_structures.h  */
typedef struct {
	double start;
	float length;
	float mean, stdv;
	int pos, state;
} event_t;

typedef struct {
	unsigned int n, start, end;
	event_t * event;
} event_table;

typedef struct {
	unsigned int n, start, end;
	float * raw;
} raw_table;


/*  Matrix definitions from scrappie_matrix.h  */
typedef struct {
        unsigned int nr, nrq, nc;
        union {
                __m128 * v;
                float * f;
        } data;
} _Mat;
typedef _Mat * scrappie_matrix;


scrappie_matrix nanonet_posterior(const event_table events, float min_prob, bool return_log);
scrappie_matrix nanonet_raw_posterior(const raw_table signal, float min_prob, bool return_log);

scrappie_matrix free_scrappie_matrix(scrappie_matrix mat);


#ifdef __cplusplus
}
#endif

#endif /* SCRAPPIE_H */

#ifndef SCRAPPIE_H
#define SCRAPPIE_H

#ifdef __cplusplus
extern "C" {
#endif

#include <immintrin.h>
#include <stdbool.h>



/*  Structure definitions from fast5_interface.h  */
typedef struct {
	double start;
	float length;
	float mean, stdv;
	int pos, state;
} event_t;

typedef struct {
	unsigned int n, start, end;
	event_t * event;
} event_table;

typedef struct {
	unsigned int n, start, end;
	float * raw;
} raw_table;


/*  Matrix definitions from util.h  */
typedef struct {
        unsigned int nr, nrq, nc;
        union {
                __m128 * v;
                float * f;
        } data;
} _Mat;
typedef _Mat * scrappie_matrix;


scrappie_matrix nanonet_posterior(const event_table events, float min_prob, bool return_log);
scrappie_matrix nanonet_raw_posterior(const raw_table signal, float min_prob, bool return_log);

scrappie_matrix free_scrappie_matrix(scrappie_matrix mat);


#ifdef __cplusplus
}
#endif

#endif /* SCRAPPIE_H */

--- 
+++ 
@@ -10,7 +10,7 @@
 
 
 
-/*  Structure definitions from fast5_interface.h  */
+/*  Structure definitions from scrappie_structures.h  */
 typedef struct {
 	double start;
 	float length;
@@ -29,7 +29,7 @@
 } raw_table;
 
 
-/*  Matrix definitions from util.h  */
+/*  Matrix definitions from scrappie_matrix.h  */
 typedef struct {
         unsigned int nr, nrq, nc;
         union {
Update where various definitions have come from
