示例#1
0
 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));
 }
示例#3
0
 public double Response(NetVector inputVector)
 {
     return(this.activationFunc(this.weightsVector.Scalar(inputVector, BIAS)));
 }
示例#4
0
 public Neuron(int size, double weightMin, double weightMax, ActivationFunctions.Func activationFunc)
 {
     this.weightsVector  = NetVector.Randomize(size + 1, weightMin, weightMax);
     this.activationFunc = activationFunc;
 }
示例#5
0
 public Neuron(NetVector weightsVector, ActivationFunctions.Func activationFunc)
 {
     this.weightsVector  = weightsVector;
     this.activationFunc = activationFunc;
 }
示例#6
0
 public static void Write(BinaryWriter w, NetBone b)
 {
     NetVector.Write(w, b.NextJoint);
     w.Write(b.Type);
 }