cseq

package
v0.0.0-...-31c1516 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNullDataPoint                   = errors.New("null data point")
	ErrInconsistentAttributeVectorSize = errors.New("inconsistent attribute vector size")
	ErrIllegalIdInQuery                = errors.New("illegal id in query")
)

Functions

This section is empty.

Types

type CSEQ

type CSEQ interface {
	// Query accepts a list of object ids as a query, a desired resultSet size. The result size specified is not
	// guaranteed, and the actual result set returned could be smaller if not enough matches are found.
	Query(query []int, resultSetSize int, noOverlap bool) ([]*QueueNode, error)
	QueryExplicit(query []int, resultSetSize int, cutoffDist float64, cellSplitParam int, noOverlap bool) ([]*QueueNode, error)
}

func Init

func Init(data []*model.DataPoint) (CSEQ, error)

func InitExtras

func InitExtras(data []*model.DataPoint, rateP, errorBound, alpha float64) (CSEQ, error)

InitExtras is a overloaded init, accepting extra params to better control cseq execution

type QueueNode

type QueueNode struct {
	Ids     []int
	Weight  float64
	AvgDist float64
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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