Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-bitswap
9d580a65c9baf698f32f6210c5a03787bbf1123f
9d580a65c9baf698f32f6210c5a03787bbf1123f
Switch branch/tag
go-bitswap
decision
ewma.go
Find file
Normal view
History
Permalink
ewma.go
99 Bytes
Edit
Web IDE
Newer
Older
engine: tag peers based on usefulness
Steven Allen
committed
Sep 06, 2019
1
2
3
4
5
package
decision
func
ewma
(
old
,
new
,
alpha
float64
)
float64
{
return
new
*
alpha
+
(
1
-
alpha
)
*
old
}