AdvancedOCR.Weights.Randomise C# (CSharp) Method

Randomise() protected static method

protected static Randomise ( double weights, int fanIn ) : void
weights double
fanIn int
return void
        protected static void Randomise(double[] weights, int fanIn)
        {
            double fanInDouble = (double)fanIn;
            for (int i = 0; i < weights.Length; i++)
            {
                weights[i] = (random.NextDouble() - 0.5) * (4.8 / fanInDouble);
            }
        }