示例#1
0
        private void TestDwtHaar()
        {
            int length = 8192;

            float[] inData  = new float[length];
            float[] outData = new float[length];

            for (int i = 0; i < length; i++)
            {
                inData[i] = (float)Math.Sin(2 * Math.PI * i / length);
            }
            DLlTools.DwtHaar1D(inData, outData);
        }
示例#2
0
        void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            int testSize = 32;

            int[] in1    = new int[testSize];
            int[] in2    = new int[testSize];
            int[] output = new int[testSize];
            for (int i = 0; i < testSize; i++)
            {
                in1[i]    = i;
                in2[i]    = i;
                output[i] = 0;
            }

            // for Load DLL
            DLlTools.Add(in1, in2, output);


            // FloatSumTest();
            // SigmoidTest();
            NEATNetworkTest();
        }