コード例 #1
0
        public void Update()
        {
            switch (Type)
            {
            case CPPNNeuronType.Input:
                Phene = new CPPNInputNeuron();
                break;

            case CPPNNeuronType.Output:
                Phene = new CPPNOutputNeuron(ActivationFunction.Function);
                break;

            case CPPNNeuronType.Hidden:
                Phene = new CPPNHiddenNeuron(ActivationFunction.Function);
                break;

            case CPPNNeuronType.Bias:
                Phene = new CPPNBiasNeuron();
                break;
            }
        }
コード例 #2
0
        public void Update()
        {
            switch (Type)
            {
                case CPPNNeuronType.Input:
                    Phene = new CPPNInputNeuron();
                    break;

                case CPPNNeuronType.Output:
                    Phene = new CPPNOutputNeuron(ActivationFunction.Function);
                    break;

                case CPPNNeuronType.Hidden:
                    Phene = new CPPNHiddenNeuron(ActivationFunction.Function);
                    break;

                case CPPNNeuronType.Bias:
                    Phene = new CPPNBiasNeuron();
                    break;
            }
        }