We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63eced6 commit 46f4fecCopy full SHA for 46f4fec
indexer-selection/src/lib.rs
@@ -123,11 +123,11 @@ where
123
// When picking curves to use consider the following reference:
124
// https://en.wikipedia.org/wiki/Logistic_function
125
126
-/// https://www.desmos.com/calculator/gzmp7rbiai
+/// https://www.desmos.com/calculator/jdogbfxw2j
127
fn score_seconds_behind(seconds_behind: u32) -> Normalized {
128
- let b: f64 = 1e-6;
129
- let l: f64 = 1.6;
130
- let k: f64 = 0.017;
+ let b: f64 = 1e-16;
+ let l: f64 = 1.532;
+ let k: f64 = 0.021;
131
let x_0: i64 = 30;
132
let u = b + (l / (1.0 + E.powf(k * (seconds_behind as i64 - x_0) as f64)));
133
Normalized::new(u).unwrap()
0 commit comments