boolNodes

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package boolNodes defines the Boolean function collections available for the GEP algorithm.

Index

Constants

This section is empty.

Variables

View Source
var BoolAllGates = functions.FuncMap{}/* 258 elements not displayed */

BoolAllGates defines the boolean functions available for this model.

View Source
var BoolMuxSystem = functions.FuncMap{}/* 258 elements not displayed */

BoolMuxSystem defines the boolean functions available for this model.

View Source
var BoolNandOnly = functions.FuncMap{}/* 258 elements not displayed */

BoolNandOnly defines the boolean functions available for this model.

View Source
var BoolNorOnly = functions.FuncMap{}/* 258 elements not displayed */

BoolNorOnly defines the boolean functions available for this model.

View Source
var BoolNotAndOrOnly = functions.FuncMap{}/* 258 elements not displayed */

BoolNotAndOrOnly defines the boolean functions available for this model.

Functions

This section is empty.

Types

type BoolNode

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

BoolNode is a boolean function used for the formation of GEP expressions.

func (BoolNode) BoolFunction

func (n BoolNode) BoolFunction(x []bool) bool

BoolFunction calls the boolean function and returns the result.

func (BoolNode) Float64Function

func (n BoolNode) Float64Function([]float64) float64

Float64Function is unused in this package and returns an error.

func (BoolNode) IntFunction added in v2.1.0

func (n BoolNode) IntFunction([]int) int

IntFunction is unused in this package and returns an error.

func (BoolNode) Symbol

func (n BoolNode) Symbol() string

Symbol returns the Karva symbol for this boolean function.

func (BoolNode) Terminals

func (n BoolNode) Terminals() int

Terminals returns the number of input terminals for this boolean function.

func (BoolNode) VectorIntFunction added in v2.1.0

func (n BoolNode) VectorIntFunction([]functions.VectorInt) functions.VectorInt

VectorIntFunction allows FuncMap to implement interace functions.FuncMap.

Jump to

Keyboard shortcuts

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