summaryrefslogtreecommitdiff
path: root/src/benchmark.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmark.h')
-rw-r--r--src/benchmark.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/benchmark.h b/src/benchmark.h
new file mode 100644
index 0000000..cd79d50
--- /dev/null
+++ b/src/benchmark.h
@@ -0,0 +1,27 @@
+#ifndef BENCHMARK_H
+#define BENCHMARK_H
+
+#include "crossbar_generator.h"
+#include "read_crossbar.h"
+#include "spires_interface.h"
+#include <stddef.h>
+
+typedef struct {
+ const char *model_path;
+ const char *subcircuit_name;
+} MemModel;
+
+int run_benchmark(const spires_reservoir_config *config,
+ spires_reservoir *reservoir,
+ Reservoir_State_Matrix *state_matrix,
+ const double *target_outputs, const char *model_path,
+ const char *subcircuit_name);
+
+int plot_raster(const Reservoir_State_Matrix *matrix, size_t neurons_to_plot,
+ double spike_threshold);
+
+int plot_reservoir_predictions(const double *expected, const double *predicted,
+ size_t num_samples, size_t num_outputs,
+ size_t output_to_plot);
+
+#endif