test

package
v0.0.0-...-0c294a2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ball

type Ball []string

Ball alias

type Item

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

An Item is something we manage in a weight queue.

type PriorityQueue

type PriorityQueue []*Item

A PriorityQueue implements heap.Interface and holds Items.

func (PriorityQueue) Find

func (pq PriorityQueue) Find(value string) *Item

Find finds an item with the given value and returns it. Nil is nothing is found

func (PriorityQueue) Len

func (pq PriorityQueue) Len() int

func (PriorityQueue) Less

func (pq PriorityQueue) Less(i, j int) bool

func (*PriorityQueue) Pop

func (pq *PriorityQueue) Pop() interface{}

Pop removes the smallest item from the priority q

func (*PriorityQueue) Push

func (pq *PriorityQueue) Push(x interface{})

Push adds an item to the priority q

func (PriorityQueue) Swap

func (pq PriorityQueue) Swap(i, j int)

type Result

type Result struct {
	GuessList        []string
	NaiveGuessList   []string
	LambdaQ          float64
	LambdaQGreedy    float64
	SecLoss          float64
	AttackerListFile string
	DefenderListFile string
	Correctors       []string
}

Result contains all the vars necessary to reproduce a test

Jump to

Keyboard shortcuts

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