示例#1
0
        public void shwh(NeuronDotNet.Core.Backpropagation.BackpropagationNetwork net)
        {
            plat = new Bitmap(Width, Height);
            List <HeatPoint> pt = new List <HeatPoint>();
            int x  = 0;
            int y  = 0;
            int mh = 0;

            while (true)
            {
                mh += 7;
                if (y > Height)
                {
                    break;
                }
                if (x > Width)
                {
                    x  = 0;
                    y += 7;
                    continue;
                }
                if (net.Run(new double[] { (double)x / ((double)Width), (double)y / ((double)Height) })[0] < 0.5)
                {
                    pt.Add(new HeatPoint(x, y, 120));
                }
                x += 1;
            }
        }
示例#2
0
        public unsafe void shw(NeuronDotNet.Core.Backpropagation.BackpropagationNetwork net)
        {
            plat = new Bitmap(Width, Height);
            List <HeatPoint> pt = new List <HeatPoint>();
            int x  = 0;
            int y  = 0;
            int mh = 0;

            while (true)
            {
                mh += 1;
                if (y > Height)
                {
                    break;
                }
                if (x > Width)
                {
                    x  = 0;
                    y += 20;
                    continue;
                }
                double dbl = net.Run(new double[] { (double)x / ((double)Width), (double)y / ((double)Height) })[0];
                if (dbl < 0.5)
                {
                    pt.Add(new HeatPoint(x, y, (byte)(190 + (int)((dbl * 5.00) * 30))));
                }
                x += 20;
            }

            Heatmap hm = new Heatmap();

            hm.CreateIntensityMask(plat, pt);
            plat = Heatmap.Colorize(plat, 255);
            Invalidate();
        }
示例#3
0
 public test2d(NeuronDotNet.Core.Backpropagation.BackpropagationNetwork net)
 {
     network = net;
     InitializeComponent();
 }