meta

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct {
	Hash  internal.Hash
	Total int
}

type Meta

type Meta interface {
	Hash() internal.Hash
	Next() time.Time
	Curr() time.Time
	YesCount() int
	NoCount() int
	Streak() int

	String() string
	Total() int
	Key() Key
	IsZero() bool
}

type Outcome

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

func NewOutcomeFromPredict

func NewOutcomeFromPredict(p *Predict, now time.Time, target bool) *Outcome

func NewOutcomeFromStrings

func NewOutcomeFromStrings(strs ...string) *Outcome

func (*Outcome) Curr

func (b *Outcome) Curr() time.Time

func (*Outcome) Hash

func (b *Outcome) Hash() internal.Hash

func (*Outcome) IsZero

func (b *Outcome) IsZero() bool

func (*Outcome) Key

func (b *Outcome) Key() Key

func (*Outcome) Next

func (b *Outcome) Next() time.Time

func (*Outcome) NoCount

func (b *Outcome) NoCount() int

func (*Outcome) PredNoCount

func (r *Outcome) PredNoCount() int

func (*Outcome) PredStreak

func (r *Outcome) PredStreak() int

func (*Outcome) PredYesCount

func (r *Outcome) PredYesCount() int

func (*Outcome) Streak

func (b *Outcome) Streak() int

func (*Outcome) String

func (r *Outcome) String() string

func (*Outcome) Target

func (r *Outcome) Target() bool

func (*Outcome) Total

func (b *Outcome) Total() int

func (*Outcome) YesCount

func (b *Outcome) YesCount() int

type OutcomeMap

type OutcomeMap map[Key]*Outcome

type Predict

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

func NewDefaultPredict

func NewDefaultPredict(hash internal.Hash, name string) *Predict

func NewPredictFromStrings

func NewPredictFromStrings(strs ...string) *Predict

func (*Predict) Clone

func (p *Predict) Clone(h internal.Hash) *Predict

func (*Predict) Curr

func (b *Predict) Curr() time.Time

func (*Predict) Exec

func (p *Predict) Exec(input bool, now time.Time) Predict

func (*Predict) Hash

func (b *Predict) Hash() internal.Hash

func (*Predict) IsZero

func (b *Predict) IsZero() bool

func (*Predict) Key

func (b *Predict) Key() Key

func (*Predict) Name

func (b *Predict) Name() string

func (*Predict) Next

func (b *Predict) Next() time.Time

func (*Predict) NoCount

func (b *Predict) NoCount() int

func (*Predict) Streak

func (b *Predict) Streak() int

func (*Predict) String

func (b *Predict) String() string

func (*Predict) Total

func (b *Predict) Total() int

func (*Predict) YesCount

func (b *Predict) YesCount() int

type PredictMap

type PredictMap map[internal.Hash]*Predict

Jump to

Keyboard shortcuts

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