aboutsummaryrefslogtreecommitdiff
path: root/src/crates
diff options
context:
space:
mode:
authorAria Shrimpton <me@aria.rip>2024-03-06 16:43:03 +0000
committerAria Shrimpton <me@aria.rip>2024-03-06 16:43:03 +0000
commit8b2e23363adfc0581f532e5fea49dccdd5650119 (patch)
tree45e73a476fb89f2e8e70e6b5fff9f49b2ef3bc27 /src/crates
parented6c0ecd686ce6b423afe4b79091e25f314a4c0f (diff)
use order 4 polynomial again, with more even spread of ns
Diffstat (limited to 'src/crates')
-rw-r--r--src/crates/candelabra/src/cost/benchmark.rs2
-rw-r--r--src/crates/candelabra/src/cost/fit.rs2
2 files changed, 2 insertions, 2 deletions
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