reservoir-core 0.1.0

Core traits, types, and metrics for reservoir computing (ESN). Supports optional no_std/alloc via feature flags.
Documentation
1
2
3
4
5
6
7
8
use crate::types::{Input, Scalar, State};

pub trait Reservoir<S: Scalar> {
    fn reset(&mut self);
    fn step(&mut self, input: &Input<S>) -> &State<S>;
    fn dim(&self) -> usize;
    fn state(&self) -> &State<S>;
}