crypto

package
v0.0.0-...-792a36f Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ancestor

type Ancestor struct {
	// contains filtered or unexported fields
}
var A *Ancestor

type DNAProcessor

type DNAProcessor struct {
	IDna
}

func NewProcessor

func NewProcessor() *DNAProcessor

type DNARaw

type DNARaw struct {
	D []byte
	// contains filtered or unexported fields
}

func GetDNA

func GetDNA(popSize uint) (dnaProof *DNARaw)

type DNATrainer

type DNATrainer interface {
	GetTrainingSet() map[int]string

	Train() string
	// contains filtered or unexported methods
}

type DnaTrainingData

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

type DnaTrainingSet

type DnaTrainingSet []DnaTrainingData

type IDna

type IDna interface {
	// contains filtered or unexported methods
}

type IOrganism

type IOrganism interface {
	// contains filtered or unexported methods
}

type Organism

type Organism struct {
	DNA     []byte
	Fitness float64
	ParentA []byte
	ParentB []byte
	IOrganism
}
var O Organism

type Trainer

type Trainer struct {
	DNATrainer
}

func NewTrainer

func NewTrainer() *Trainer

func (*Trainer) GetTrainingSet

func (t *Trainer) GetTrainingSet() map[int]string

func (*Trainer) Train

func (t *Trainer) Train() string

Jump to

Keyboard shortcuts

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