sparse_random_projection

package
v0.0.0-...-eb36bdb Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SparseRandomProjection

type SparseRandomProjection struct {
	// contains filtered or unexported fields
}

func New

func New(dimension, numOfHashes, ratio int) *SparseRandomProjection

func (*SparseRandomProjection) GetHash

func (srp *SparseRandomProjection) GetHash(vector []float64) []int

func (*SparseRandomProjection) GetHashSparse

func (srp *SparseRandomProjection) GetHashSparse(
	data []index_value.Pair,
) []int

Jump to

Keyboard shortcuts

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