Example #1
0
        public InternalNodeGene ChangeFunction(ActivationFunctionType newType, int geneID)
        {
            ActivationFunction function = ActivationFunction.GetRandomInitializedFunction(newType);
            InternalNodeGene   gene     = new InternalNodeGene(geneID, nodeID, function);

            return(gene);
        }
Example #2
0
 public InternalNodeGene(InternalNodeGene gene) : base(gene.geneID, gene.nodeID)
 {
     Function = gene.Function;
 }