Commit 38c79b052ff8a9c7163f05fa001102cf0d4a28d4
Improve Slowness algorithm a bit
Author: xaizek
Author date (UTC): 2022-12-31 15:47
Committer name: xaizek
Committer date (UTC): 2022-12-31 15:47
Parent(s): c36154d52f2ccb0d138d8360c4efddae18b8430f
Signing key: 99DC5E4DB05F6BE2
Tree: 1fe39d17b42854fbd618e1f7c269c87dc6125065
File src/algs.cpp changed (mode: 100644) (index f158a85..845ee0e) |
... |
... |
SlownessAlg::estimate(int current, int total, int time) |
465 |
465 |
totalEta = slowness; |
totalEta = slowness; |
466 |
466 |
eta = slowness; |
eta = slowness; |
467 |
467 |
} else { |
} else { |
468 |
|
float weight = std::exp(-1.0f/(total*decay)); |
|
|
468 |
|
float weight = std::exp(-1.0f/(total*decay/100.f)); |
469 |
469 |
totalEta = totalEta*weight + slowness*(1.0f - weight); |
totalEta = totalEta*weight + slowness*(1.0f - weight); |
470 |
470 |
eta = (1.0f - 1.0f*current/total)*totalEta; |
eta = (1.0f - 1.0f*current/total)*totalEta; |
471 |
471 |
} |
} |