Small clean up

This commit is contained in:
2022-06-07 10:01:01 +02:00
parent a5c6e8b8a2
commit 5a54d460c9
3 changed files with 14 additions and 13 deletions

View File

@@ -7,6 +7,7 @@ use crate::kernel::Kernel;
use super::Fitter;
#[derive(Clone)]
pub struct Recursive<K> {
ts_new: Vec<f64>,
kernel: K,
@@ -232,7 +233,7 @@ impl<K: Kernel> Fitter for Recursive<K> {
self.ts
.iter()
.position(|tc| t <= tc)
.unwrap_or_else(|| self.ts.len())
.unwrap_or(self.ts.len())
});
for (i, nxt) in locations.into_iter().enumerate() {
@@ -415,7 +416,7 @@ mod tests {
}
fn data_loglik() -> f64 {
-17.357282245711051
-17.35728224571105
}
fn data_ts_pred() -> &'static [f64] {