Documentation ¶
Index ¶
- func FisherYatesShuffle(inputs []interface{}, nhash ...uint64)
- type Interpreter
- func (interpreter *Interpreter) Evaluate(code interface{}) interface{}
- func (interpreter *Interpreter) Get(name string) (interface{}, bool)
- func (interpreter *Interpreter) GetOperator(expr interface{}) (Operator, bool)
- func (interpreter *Interpreter) Run(force ...bool) (map[string]interface{}, bool)
- type Namespace
- type Operator
- type PlanOutCode
- type SimpleNamespace
- type TypedMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FisherYatesShuffle ¶
func FisherYatesShuffle(inputs []interface{}, nhash ...uint64)
Types ¶
type Interpreter ¶
type Interpreter struct { Name string Salt string Inputs, Outputs, Overrides map[string]interface{} Code interface{} Evaluated, InExperiment bool ParameterSalt string OperatorOverrides map[string]Operator }
func (*Interpreter) Evaluate ¶
func (interpreter *Interpreter) Evaluate(code interface{}) interface{}
func (*Interpreter) Get ¶
func (interpreter *Interpreter) Get(name string) (interface{}, bool)
func (*Interpreter) GetOperator ¶
func (interpreter *Interpreter) GetOperator(expr interface{}) (Operator, bool)
type Operator ¶
type Operator interface {
Execute(map[string]interface{}, *Interpreter) interface{}
}
type PlanOutCode ¶
type SimpleNamespace ¶
type SimpleNamespace struct { Name string PrimaryUnit string NumSegments int Inputs map[string]interface{} // contains filtered or unexported fields }
func NewSimpleNamespace ¶
func NewSimpleNamespace(name string, numSegments int, primaryUnit string, inputs map[string]interface{}) SimpleNamespace
func (*SimpleNamespace) AddDefaultExperiment ¶
func (n *SimpleNamespace) AddDefaultExperiment(defaultExperiment *Interpreter)
func (*SimpleNamespace) AddExperiment ¶
func (n *SimpleNamespace) AddExperiment(name string, interpreter *Interpreter, segments int) error
func (*SimpleNamespace) RemoveExperiment ¶
func (n *SimpleNamespace) RemoveExperiment(name string) error
func (*SimpleNamespace) Run ¶
func (n *SimpleNamespace) Run() *Interpreter
Click to show internal directories.
Click to hide internal directories.