Documentation
¶
Index ¶
- type MinHash
- func (h *MinHash) Add(element []byte)
- func (h *MinHash) AddString(element string)
- func (h *MinHash) Get(pos int) uint64
- func (h *MinHash) GetSignature() []uint64
- func (h *MinHash) GetSimilarity(h1 *MinHash) (float64, error)
- func (h *MinHash) Marshal() (b []byte, err error)
- func (h *MinHash) ReadFrom(r io.Reader) (n int64, err error)
- func (h *MinHash) Set(pos int, value uint64)
- func (h *MinHash) Unmarshal(b []byte) (n int64, err error)
- func (h *MinHash) WriteTo(w io.Writer) (n int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MinHash ¶
type MinHash struct {
// contains filtered or unexported fields
}
MinHash stores a Set of min hashes(per bucket has one min hash)
func (*MinHash) GetSignature ¶
GetSignature returns a signature for the set.
func (*MinHash) GetSimilarity ¶
GetSimilarity of two MinHash
func (*MinHash) ReadFrom ¶
ReadFrom reads a binary representation of the MinHash (such as might have been written by WriteTo()) from an i/o stream. It returns the number of bytes read.
Click to show internal directories.
Click to hide internal directories.