bpbase.cs

来自「Source code Recognize character with bac」· CS 代码 · 共 65 行

CS
65
字号
#region Copyright (c), Some Rights Reserved
/*##########################################################################
 * 
 * BPBase.cs
 * -------------------------------------------------------------------------
 * By
 * Murat FIRAT, June 2007
 * 
 * -------------------------------------------------------------------------
 * Description:
 * BPBase.cs Contains Common Structs For Backpropagation Neural Network
 * And a Custom EventArgs Class For Neural Network
 * 
 * -------------------------------------------------------------------------
 ###########################################################################*/
#endregion

using System;
using System.Collections.Generic;
using System.Text;

namespace BPSimplified.Lib
{
    [Serializable]
    struct PreInput
    {
        public double Value;
        public double[] Weights;
    };
    [Serializable]
    struct Input
    {
        public double InputSum;
        public double Output;
        public double Error;
        public double[] Weights;
    };
    [Serializable]
    struct Hidden
    {
        public double InputSum;
        public double Output;
        public double Error;
        public double[] Weights;
    };
   
    [Serializable]
    struct Output<T> where T : IComparable<T>
    {
        public double InputSum;
        public double output;
        public double Error;
        public double Target;
        public T Value;
    };

    public class NeuralEventArgs : EventArgs
    {
        public bool Stop = false;
        public double CurrentError = 0;
        public int CurrentIteration = 0;
    }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?