public static void Write(BinaryWriter w, NetVector v) { w.Write(v.x); w.Write(v.y); w.Write(v.z); }
public double[] Response(NetVector input) { return(this.Response(input.Values)); }
public double Response(NetVector inputVector) { return(this.activationFunc(this.weightsVector.Scalar(inputVector, BIAS))); }
public Neuron(int size, double weightMin, double weightMax, ActivationFunctions.Func activationFunc) { this.weightsVector = NetVector.Randomize(size + 1, weightMin, weightMax); this.activationFunc = activationFunc; }
public Neuron(NetVector weightsVector, ActivationFunctions.Func activationFunc) { this.weightsVector = weightsVector; this.activationFunc = activationFunc; }
public static void Write(BinaryWriter w, NetBone b) { NetVector.Write(w, b.NextJoint); w.Write(b.Type); }