public NonInputNode(Network parentNet, Creature parentCreature, int layer) { rand = new System.Random(Guid.NewGuid().GetHashCode()); this.parentNet = parentNet; this.parentCreature = parentCreature; // set to logistic activation by default activBehavior = new LogisticActivBehavior(); this.layer = layer; resetAllPreviousNodes(); generatePhenotypeWeights(); }
public NonInputNode() { rand = new System.Random(Guid.NewGuid().GetHashCode()); activBehavior = new LogisticActivBehavior(); }
/// <summary> /// Sets a new activation behavior, thus altering the activation function. /// </summary> public void setActivBehavior(ActivationBehavior behavior) { activBehavior = behavior; }