public void AddWeight(TNeuralWeight Weight) { if (this.fWeight.IndexOf((object)Weight) == -1) { return; } this.fWeight.Add((object)Weight); }
public TNeuralWeight GetMaxWeight() { if (this.weights.Count == 0) return (TNeuralWeight) null; TNeuralWeight tneuralWeight1 = (TNeuralWeight) this.weights[0]; double weight = tneuralWeight1.Weight; foreach (TNeuralWeight tneuralWeight2 in this.weights) { if (tneuralWeight2.Weight > weight) { tneuralWeight1 = tneuralWeight2; weight = tneuralWeight2.Weight; } } return tneuralWeight1; }
public TNeuralWeight GetMaxWeight() { if (this.u25o0XTtW) { double num = -10000000000.0; foreach (TNeuron tneuron in this.fNeuron) { TNeuralWeight maxWeight = tneuron.GetMaxWeight(); if (maxWeight != null && maxWeight.Weight > num) { this.Vlon5OFCQ = tneuron; this.hG4PgBLCK = maxWeight; num = maxWeight.Weight; } } this.u25o0XTtW = false; } return(this.hG4PgBLCK); }
public TNeuralWeight GetMinWeight() { if (this.KCL7WIToG) { double num = 10000000000.0; foreach (TNeuron tneuron in this.fNeuron) { TNeuralWeight minWeight = tneuron.GetMinWeight(); if (minWeight != null && minWeight.Weight < num) { this.ahkE1lI8Y = tneuron; this.EGtFBCxEX = minWeight; num = minWeight.Weight; } } this.KCL7WIToG = false; } return(this.EGtFBCxEX); }
public TNeuralWeight GetMaxWeight() { if (this.u25o0XTtW) { double num = -10000000000.0; foreach (TNeuron tneuron in this.fNeuron) { TNeuralWeight maxWeight = tneuron.GetMaxWeight(); if (maxWeight != null && maxWeight.Weight > num) { this.Vlon5OFCQ = tneuron; this.hG4PgBLCK = maxWeight; num = maxWeight.Weight; } } this.u25o0XTtW = false; } return this.hG4PgBLCK; }
public TNeuralWeight GetMinWeight() { if (this.KCL7WIToG) { double num = 10000000000.0; foreach (TNeuron tneuron in this.fNeuron) { TNeuralWeight minWeight = tneuron.GetMinWeight(); if (minWeight != null && minWeight.Weight < num) { this.ahkE1lI8Y = tneuron; this.EGtFBCxEX = minWeight; num = minWeight.Weight; } } this.KCL7WIToG = false; } return this.EGtFBCxEX; }
public void AddWeight(TNeuralWeight Weight) { if (this.fWeight.IndexOf((object) Weight) == -1) return; this.fWeight.Add((object) Weight); }