/// <summary> /// Assign random values to the network. The range will be the min/max of /// existing neurons. /// </summary> /// /// <param name="targetLayer">The target layer.</param> /// <param name="neuron">The target neuron.</param> public void RandomizeNeuron(int targetLayer, int neuron) { FlatNetwork flat = _network.Structure.Flat; double low = EngineArray.Min(flat.Weights); double high = EngineArray.Max(flat.Weights); RandomizeNeuron(targetLayer, neuron, true, low, high, false, 0.0d); }