bytes

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ErrVectorsNotSameSizeMsg = "vectors must be the same size"
	ErrVectorZeroSizeMsg     = "vectors cannot be zero size"
)

Variables

This section is empty.

Functions

func ErrVectorZeroSize

func ErrVectorZeroSize() error

func ErrVectorsNotSameSize

func ErrVectorsNotSameSize() error

func Hamming

func Hamming(vx []byte, vy []byte) (int, error)

Hamming returns the distance between the given vectors.

func RandBytes

func RandBytes(size int) []byte

RandBytes returns random generated bytes with given size.

Types

This section is empty.

Jump to

Keyboard shortcuts

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