sa

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Anneal

func Anneal(ctx *Context) error

Types

type ByProbDesc

type ByProbDesc []bpefs.StreakPrediction

ByProbDesc sorts StreakPredictions by probability times spread (descending)

func (ByProbDesc) Len

func (a ByProbDesc) Len() int

func (ByProbDesc) Less

func (a ByProbDesc) Less(i, j int) bool

func (ByProbDesc) Swap

func (a ByProbDesc) Swap(i, j int)

type Context

type Context struct {
	context.Context
	FirestoreClient *fs.Client

	Force  bool
	DryRun bool

	Season      int
	Week        int
	Streakers   []string
	All         bool
	Seed        int64
	Workers     int
	Iterations  int
	WanderLimit int
	C           float64
	E           float64
}

func NewContext

func NewContext(ctx context.Context) *Context

Jump to

Keyboard shortcuts

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