aboutsummaryrefslogtreecommitdiff
path: root/src/crates/candelabra
diff options
context:
space:
mode:
authorAria Shrimpton <me@aria.rip>2024-03-04 14:00:22 +0000
committerAria Shrimpton <me@aria.rip>2024-03-04 14:00:22 +0000
commit0b6909feb6bf666d999002b9f3d514d01ccf122f (patch)
tree4a6ecf7286e9898cfa2d808ce29a22ca61fcacc4 /src/crates/candelabra
parent7e25cf0c0d50e7606378a8ef91d66df8a979b1f7 (diff)
try using order 3 polynomial
Diffstat (limited to 'src/crates/candelabra')
-rw-r--r--src/crates/candelabra/src/cost/fit.rs2
1 files changed, 1 insertions, 1 deletions
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