9 #ifndef sa_time_series_h_ 10 #define sa_time_series_h_ int sa_deserialize_time_series_int(sa_time_series_int *ts, const char *buf, size_t len)
Restores the internal state from the serialized output.
void sa_destroy_time_series_int(sa_time_series_int *ts)
Free the associated memory.
int sa_add_time_series_int(sa_time_series_int *ts, uint64_t ns, int v)
Adds the specified value to the time series row.
void sa_init_time_series_int(sa_time_series_int *ts)
Zeros out the time series.
char * sa_serialize_time_series_int(sa_time_series_int *ts, size_t *len)
Serialize the internal state to a buffer.
int sa_set_time_series_int(sa_time_series_int *ts, uint64_t ns, int v)
Sets the time series row to the specified value.
int sa_mp_time_series_int(sa_time_series_int *ts, uint64_t ns, int n, int m, double percent, double *mp[], int *mpi[])
Computes the matrix profile for a time series or sub set of the series.
struct sa_time_series_int sa_time_series_int
uint64_t sa_timestamp_time_series_int(sa_time_series_int *ts)
Returns the timestamp of the most recent row.
sa_time_series_int * sa_create_time_series_int(int rows, uint64_t ns_per_row)
Allocates and initializes the data structure.
int sa_get_time_series_int(sa_time_series_int *ts, uint64_t ns)
Gets the value of the time series row.