Пример #1
0
 public static void Write(BinaryWriter w, NetVector v)
 {
     w.Write(v.x);
     w.Write(v.y);
     w.Write(v.z);
 }
Пример #2
0
 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);
 }