irr

package
v0.0.0-...-938ee2d Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllIrr

func AllIrr(file *oo.File, maxModChoice int) (int, []bool)

Best result of several IRR + OO runs

func AllIrrCoo

func AllIrrCoo(file *oo.File, maxModChoice int) (int, []bool)

Compute several IRRCOO runs in parallel and return the best result

func AllIrrMgp

func AllIrrMgp(file *oo.File, maxModChoice int) (int, []bool)

Compute several IRRMGP runs in parallel and return the best result

func MC

func MC(length, occurrences int) int

Only MC is used in this program; ML and MO are listed for completeness

func ML

func ML(length, occurrences int) int

func MO

func MO(length, occurrences int) int

func RandomizedIrr

func RandomizedIrr(file *oo.File, rnd *rand.Rand, tries int) (int, []bool)

Types

type IrrResult

type IrrResult struct {
	Score  int
	Choice []bool
}

func Irr

func Irr(file *oo.File, rnd *rand.Rand, scoreFn func(int, int) int, choiceMod int) *IrrResult

The main function of the IRR algorithm

func IrrCoo

func IrrCoo(file *oo.File, scoreFn func(int, int) int, choiceMod int) *IrrResult

The main function of the IRRCOO algorithm Version without the cleanup

func IrrMgp

func IrrMgp(file *oo.File, scoreFn func(int, int) int, choiceMod int) *IrrResult

The main function of the IRRMGP algorithm

Jump to

Keyboard shortcuts

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