pool

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Features

type Features struct {
	Feats sample.ImmutableFeatures
	ID    int
	// contains filtered or unexported fields
}

func (*Features) Get

func (f *Features) Get(key string) sample.Feature

func (*Features) Id

func (f *Features) Id() int

func (*Features) Key

func (f *Features) Key() string

type Pool

type Pool struct {
	Array []Features

	WholeCollection []int
	// contains filtered or unexported fields
}

func NewPool

func NewPool(filepath string, keyField string) (*Pool, error)

func (*Pool) GetById

func (s *Pool) GetById(id int) *Features

func (*Pool) GetByKey

func (s *Pool) GetByKey(key string) *Features

func (*Pool) Len

func (s *Pool) Len() int

func (*Pool) List

func (s *Pool) List() []datastruct.Tuple[string, float32]

Jump to

Keyboard shortcuts

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