sorting algorithms implemented for go, based heavily on the nodejs implementation of https://github.com/clux/decay
Popularity calcuation based on published Reddit rankings. http://amix.dk/blog/post/19588
import (
"decay"
"time"
)
func main() {
redditScore := decay.Reddit(45000)
fmt.println(redditScore(10, 3, time.now()))
}
Popularity calcuation based on published HackerNews rankings. http://amix.dk/blog/post/19574
import (
"decay"
"time"
)
func main() {
hackerScore := decay.HackerNews(1.9)
fmt.println(hackerScore(10, 3, time.now()))
}
Non-decay based calculation based on statistical confidence of data.
import (
"decay"
"time"
)
func main() {
wilsonScore := decay.WilsonScore(1.96)
fmt.println(wilsonScore(10, 3))
}