Exemple #1
0
        public Connection(Node input, Node output)
        {
            IsEnabled = true;
            Weight    = CPPNSettings.GenerateWeight();

            this.Input  = input;
            this.Output = output;
        }
Exemple #2
0
        public void AddNode()
        {
            var c = Connections[Utilities.ThreadSafeRandom.Next(Connections.Count)];

            var n = new HiddenNode(CPPNSettings.RandomActivation(), CPPNSettings.RandomCombination(), c.Input.NetworkLevel * .5 + c.Output.NetworkLevel * .5);

            Nodes.Add(n);

            Connections.Add(new Connection(c.Input, n));
            Connections.Add(new Connection(n, c.Output));

            c.IsEnabled = false;
        }
Exemple #3
0
 public Complex Evaluate(Complex [] input, List <Connection> connections)
 {
     return(CPPNSettings.OutputTransform(evaluate(input, connections)));
 }