Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BinarySearchLookup ¶
func BinarySearchLookup(key float64, st *SortedTable) (offsets []int, err error)
func FullScanLookup ¶
func FullScanLookup(key float64, st *SortedTable) (offsets []int, err error)
Types ¶
type SortedTable ¶
A Sorted Table represents a collection of key:offset pairs that is sorted by key keeping offsets following their corresponding key
func NewSortedTable ¶
func NewSortedTable(x []float64) *SortedTable
Return a Sorted Table structure sorted by key in an ascending order
Click to show internal directories.
Click to hide internal directories.