pairwise

package
v0.0.0-...-382d658 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadForCmd

func LoadForCmd(cmd *cobra.Command, opts *Options)

Types

type CountType

type CountType string
const (
	Increment CountType = "inc"
	Distance  CountType = "dis"
)

func (*CountType) Set

func (t *CountType) Set(name string) error

func (*CountType) String

func (t *CountType) String() string

func (*CountType) Type

func (t *CountType) Type() string

type Options

type Options struct {
	CountType CountType
	Window    int
}

func DefaultOptions

func DefaultOptions() Options

type Pairwise

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

func New

func New(opts Options) *Pairwise

func (*Pairwise) Add

func (p *Pairwise) Add(left, right int) error

func (*Pairwise) PairMap

func (p *Pairwise) PairMap() map[uint64]float64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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