MCPcopy
hub / github.com/fogleman/primitive / NewState

Function NewState

primitive/state.go:11–18  ·  view source on GitHub ↗
(worker *Worker, shape Shape, alpha int)

Source from the content-addressed store, hash-verified

9}
10
11func NewState(worker *Worker, shape Shape, alpha int) *State {
12 var mutateAlpha bool
13 if alpha == 0 {
14 alpha = 128
15 mutateAlpha = true
16 }
17 return &State{worker, shape, alpha, mutateAlpha, -1}
18}
19
20func (state *State) Energy() float64 {
21 if state.Score < 0 {

Callers 1

RandomStateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…