From 8b2e23363adfc0581f532e5fea49dccdd5650119 Mon Sep 17 00:00:00 2001 From: Aria Shrimpton Date: Wed, 6 Mar 2024 16:43:03 +0000 Subject: use order 4 polynomial again, with more even spread of ns --- src/crates/candelabra/src/cost/benchmark.rs | 2 +- src/crates/candelabra/src/cost/fit.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/crates') diff --git a/src/crates/candelabra/src/cost/benchmark.rs b/src/crates/candelabra/src/cost/benchmark.rs index b67d6a3..45bac5d 100644 --- a/src/crates/candelabra/src/cost/benchmark.rs +++ b/src/crates/candelabra/src/cost/benchmark.rs @@ -25,7 +25,7 @@ pub const ELEM_TYPE: &str = "usize"; /// String representation of the array of N values we use for benchmarking pub const NS: &str = "[ - 64, 256, 2048, 5120, 16384, 65536 + 100, 500, 6_000, 12_000, 24_000, 36_000, 48_000, 60_000 ]"; /// Fixed seed for benchmarking diff --git a/src/crates/candelabra/src/cost/fit.rs b/src/crates/candelabra/src/cost/fit.rs index 8e09e1c..ca81118 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 = 3; +const COEFFICIENTS: usize = 4; /// Estimates durations using a 3rd-order polynomial. /// Value i is multiplied by x^i -- cgit v1.2.3