From 0b6909feb6bf666d999002b9f3d514d01ccf122f Mon Sep 17 00:00:00 2001 From: Aria Shrimpton Date: Mon, 4 Mar 2024 14:00:22 +0000 Subject: try using order 3 polynomial --- src/crates/candelabra/src/cost/fit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crates/candelabra') diff --git a/src/crates/candelabra/src/cost/fit.rs b/src/crates/candelabra/src/cost/fit.rs index c25974c..80515ab 100644 --- a/src/crates/candelabra/src/cost/fit.rs +++ b/src/crates/candelabra/src/cost/fit.rs @@ -7,7 +7,7 @@ use nalgebra::{dimension, Matrix, VecStorage}; use serde::{Deserialize, Serialize}; /// Number of coefficients to use -const COEFFICIENTS: usize = 4; +const COEFFICIENTS: usize = 3; /// Estimates durations using a 3rd-order polynomial. /// Value i is multiplied by x^i -- cgit v1.2.3