Small clean up
This commit is contained in:
@@ -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] {
|
||||
|
||||
Reference in New Issue
Block a user