|
|
@ -50,7 +50,7 @@ impl SARIMA { |
|
|
|
// TODO: trend detection
|
|
|
|
// TODO: trend detection
|
|
|
|
|
|
|
|
|
|
|
|
if ts.len() < 2 { |
|
|
|
if ts.len() < 2 { |
|
|
|
return Err(anyhow::format_err!("to short timeserie to learn from")); |
|
|
|
return Err(anyhow::format_err!("too short timeserie to learn from, timeserie length: {}", ts.len())); |
|
|
|
} |
|
|
|
} |
|
|
|
// TODO: ensure capacity with seasonality size
|
|
|
|
// TODO: ensure capacity with seasonality size
|
|
|
|
let mut res_ts = Vec::<(u64, f64)>::new(); |
|
|
|
let mut res_ts = Vec::<(u64, f64)>::new(); |
|
|
|