bestmatches

package
v0.0.0-...-0117f21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2016 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBestMatches

func GetBestMatches(title string, count int) []string

returns n=count titles matching to the title

func RemoveDuplicates

func RemoveDuplicates(xs *[]int)

func SortByFrequency

func SortByFrequency(ids []int, frequencies map[int]int) []int

Types

type ByFrequency

type ByFrequency []IdFrequency

func (ByFrequency) Len

func (nf ByFrequency) Len() int

func (ByFrequency) Less

func (nf ByFrequency) Less(i, j int) bool

func (ByFrequency) Swap

func (nf ByFrequency) Swap(i, j int)

type IdFrequency

type IdFrequency struct {
	Id        int
	Frequency int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL