mirror of
https://github.com/sjwhitworth/golearn.git
synced 2025-04-26 13:49:14 +08:00
14 lines
220 B
Go
14 lines
220 B
Go
![]() |
package filters
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
type FrequencyTableEntry struct {
|
||
|
Value float64
|
||
|
Frequency map[string]int
|
||
|
}
|
||
|
|
||
|
func (t *FrequencyTableEntry) String() string {
|
||
|
return fmt.Sprintf("%.2f %s", t.Value, t.Frequency)
|
||
|
}
|