blotter

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

package blotter provides fingerprinting for dupi docs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Circ

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

func NewCirc

func NewCirc(n int) *Circ

func (*Circ) Blot

func (c *Circ) Blot(word []byte) uint32

func (*Circ) Config

func (c *Circ) Config() *Config

func (*Circ) Interleaving

func (c *Circ) Interleaving() int

type Config

type Config struct {
	SeqLen     int
	Interleave int
}

func DefaultConfig

func DefaultConfig() *Config

type T

type T interface {
	Config() *Config
	Blot(tok []byte) uint32
	Interleaving() int
}

func FromConfig

func FromConfig(c *Config) (T, error)

Jump to

Keyboard shortcuts

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