Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMaxNumsOfCosine ¶
func GetMaxNumsOfCosine(arr []dto.CosineLabel, k int) []dto.CosineLabel
Types ¶
type Float64Heap ¶
type Float64Heap []dto.CosineLabel
func (*Float64Heap) Len ¶
func (f *Float64Heap) Len() int
func (*Float64Heap) Less ¶
func (f *Float64Heap) Less(i, j int) bool
func (*Float64Heap) Pop ¶
func (f *Float64Heap) Pop() any
func (*Float64Heap) Push ¶
func (f *Float64Heap) Push(x any)
func (*Float64Heap) Swap ¶
func (f *Float64Heap) Swap(i, j int)
Swap swaps the elements with indexes i and j.
Click to show internal directories.
Click to hide internal directories.