public void uniformDistributionTest()
        {
            double[] setOfNumbers = MathematicalFunction.uniformDistribution(10);
            double   sum          = 0.0d;

            foreach (double number in setOfNumbers)
            {
                sum += number;
            }

            if (sum > 1.0d)
            {
                Assert.Fail();
            }
        }
        private void createLayers()
        {
            hiddenLayer = new HiddenNeurone[numberOfHiddenOrContextNeurons];
            for (int i = 0; i < numberOfHiddenOrContextNeurons; i++)
            {
                double[] weights = MathematicalFunction.uniformDistribution(inputLength + numberOfHiddenOrContextNeurons);
                hiddenLayer[i] = new HiddenNeurone(weights);
            }

            contextLayer = new ContextNeurone[numberOfHiddenOrContextNeurons];
            for (int i = 0; i < numberOfHiddenOrContextNeurons; i++)
            {
                contextLayer[i] = new ContextNeurone();
            }

            outputLayer = new OutputNeurone[numberOfOutputNeurons];
            for (int i = 0; i < numberOfOutputNeurons; i++)
            {
                double[] weights = MathematicalFunction.uniformDistribution(numberOfHiddenOrContextNeurons);
                outputLayer[i] = new OutputNeurone(weights);
            }
        }