Implemented more functions

This commit is contained in:
2021-05-28 14:35:21 +02:00
parent 32dafd4e54
commit 7deeabfd55
5 changed files with 193 additions and 27 deletions

View File

@@ -33,7 +33,7 @@ impl RecursiveFitter {
let m = kernel.order();
let h = kernel.measurement_vector();
RecursiveFitter {
Self {
ts_new: Vec::new(),
kernel,
ts: Vec::new(),
@@ -215,6 +215,7 @@ impl Fitter for RecursiveFitter {
self.is_fitted = true;
}
#[allow(clippy::many_single_char_names)]
fn predict(&self, ts: &[f64]) -> (Vec<f64>, Vec<f64>) {
if !self.is_fitted {
panic!("new data since last call to `fit()`");