Skip to content

Commit 46f4fec

Browse files
authored
increase seconds_behind sensitivity (#43)
1 parent 63eced6 commit 46f4fec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

indexer-selection/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ where
123123
// When picking curves to use consider the following reference:
124124
// https://en.wikipedia.org/wiki/Logistic_function
125125

126-
/// https://www.desmos.com/calculator/gzmp7rbiai
126+
/// https://www.desmos.com/calculator/jdogbfxw2j
127127
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;
128+
let b: f64 = 1e-16;
129+
let l: f64 = 1.532;
130+
let k: f64 = 0.021;
131131
let x_0: i64 = 30;
132132
let u = b + (l / (1.0 + E.powf(k * (seconds_behind as i64 - x_0) as f64)));
133133
Normalized::new(u).unwrap()

0 commit comments

Comments
 (0)