Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codesuki/go-trending
/ functions
Functions
45 in github.com/codesuki/go-trending
⨍
Functions
45
◇
Types & classes
15
↓ 11 callers
Method
Insert
(score float64)
trending.go:103
↓ 6 callers
Method
Now
()
slidingwindow/slidingwindow.go:9
↓ 2 callers
Method
Max
()
trending.go:104
↓ 2 callers
Method
Range
(start, end time.Time)
trending.go:111
↓ 2 callers
Method
advance
()
slidingwindow/slidingwindow.go:115
↓ 2 callers
Method
updateMax
(score float64)
item.go:87
↓ 1 callers
Method
IncreaseAtTime
(amount int, time time.Time)
trending.go:110
↓ 1 callers
Function
NewSlidingWindow
(os ...option)
slidingwindow/slidingwindow.go:65
↓ 1 callers
Method
addToItem
(item *item, time time.Time)
trending.go:177
↓ 1 callers
Method
computeCounts
()
item.go:72
↓ 1 callers
Method
computeExponentialDecayMultiplier
()
item.go:92
↓ 1 callers
Function
computeKullbackLeibler
(probability float64, expectation float64)
item.go:96
↓ 1 callers
Method
computeRecentMax
()
item.go:79
↓ 1 callers
Method
decayMax
()
item.go:83
↓ 1 callers
Function
newItem
(id string, options *options)
item.go:21
↓ 1 callers
Function
newSlidingWindow
(step time.Duration, duration time.Duration, clock Clock)
slidingwindow/slidingwindow.go:82
↓ 1 callers
Method
score
()
item.go:34
↓ 1 callers
Method
take
(count int)
score.go:26
↓ 1 callers
Method
threshold
(t float64)
score.go:33
Method
AddEvent
(id string, time time.Time)
trending.go:168
Method
Insert
(score float64)
slidingwindow/slidingwindow.go:97
Method
Len
()
score.go:14
Method
Less
(i, j int)
score.go:22
Method
Max
()
slidingwindow/slidingwindow.go:104
Function
NewMemoryTimeSeries
(id string)
trending.go:116
Function
NewScorer
(options ...Option)
trending.go:128
Method
Now
()
slidingwindow/slidingwindow.go:15
Method
Score
()
trending.go:181
Method
Swap
(i, j int)
score.go:18
Function
TestAddEvent
(t *testing.T)
trending_test.go:9
Function
TestMemory
(t *testing.T)
trending_test.go:17
Function
TestNewScorer
(t *testing.T)
trending_test.go:5
Function
TestScore
(t *testing.T)
trending_test.go:13
Function
TestSlidingWindow
(t *testing.T)
slidingwindow/slidingwindow_test.go:11
Function
WithClock
(clock Clock)
slidingwindow/slidingwindow.go:59
Function
WithCountThreshold
(threshold float64)
trending.go:91
Function
WithDuration
(duration time.Duration)
slidingwindow/slidingwindow.go:53
Function
WithHalfLife
(halfLife time.Duration)
trending.go:61
Function
WithMaxResults
(maxResults int)
trending.go:79
Function
WithRecentDuration
(recentDuration time.Duration)
trending.go:67
Function
WithScoreThreshold
(threshold float64)
trending.go:85
Function
WithSlidingWindow
(creator SlidingWindowCreator)
trending.go:55
Function
WithStep
(step time.Duration)
slidingwindow/slidingwindow.go:47
Function
WithStorageDuration
(storageDuration time.Duration)
trending.go:73
Function
WithTimeSeries
(creator TimeSeriesCreator)
trending.go:49