IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Neural.Forms.Old.FormNeural1DOld Class Reference
+ Inheritance diagram for IG.Neural.Forms.Old.FormNeural1DOld:
+ Collaboration diagram for IG.Neural.Forms.Old.FormNeural1DOld:

Public Member Functions

 FormNeural1DOld ()
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used. More...
 

Private Member Functions

void LoadForm (object sender, EventArgs e)
 
void btStart_Click (object sender, EventArgs e)
 
void btnGenerateOptData_Click (object sender, EventArgs e)
 
void PrepareTrainingPoints (bool randomPoints)
 Preparing training points More...
 
IRealFunction createFunction ()
 Creates a function loader and uses it for dynamic definition of functions. More...
 
void cbxAforge_CheckedChanged (object sender, EventArgs e)
 
void cbxNeuron_CheckedChanged (object sender, EventArgs e)
 
void numMaxEpoch_ValueChanged (object sender, EventArgs e)
 
void numEpochBundle_ValueChanged (object sender, EventArgs e)
 
void numRMS_ValueChanged (object sender, EventArgs e)
 
void numLearningRate_ValueChanged (object sender, EventArgs e)
 
void numMomentum_ValueChanged (object sender, EventArgs e)
 
void numSamples_ValueChanged (object sender, EventArgs e)
 
void numHiddenNeuron_ValueChanged (object sender, EventArgs e)
 
void numLowLimit_ValueChanged (object sender, EventArgs e)
 
void numHighLimit_ValueChanged (object sender, EventArgs e)
 
void numInputSafety_ValueChanged (object sender, EventArgs e)
 
void numOutputSafety_ValueChanged (object sender, EventArgs e)
 
void cbEquation_SelectedIndexChanged (object sender, EventArgs e)
 
void WriteDefaultFunction ()
 
string OnPointEdit (ZedGraphControl sender, GraphPane pane, CurveItem curve, int iPt)
 
void EnableControls (bool enabled)
 
void CleanseGraph (bool dafaultF, bool approximatedF, bool trainingF)
 
void GraphDimensions (SampledDataSet data)
 Defines graph dimensions. More...
 
void WriteTrainingPoints (SampledDataSet trainingData)
 
void Stop ()
 
void Prediction (INeuralApproximator approximator, ref IVector[] exactInputParameters, ref IVector[] approximatedOutputValues, bool testFromFile)
 
void CalculateError (IVector[] exactOutputValues, IVector[] approximatedOutputValues, ref double maxError, ref double averageError)
 
void btnReset_Click (object sender, EventArgs e)
 
void cbMultipleThread_CheckedChanged (object sender, EventArgs e)
 
void numThreads_ValueChanged (object sender, EventArgs e)
 
void numFunctionType_ValueChanged (object sender, EventArgs e)
 
void tbSelfMadeEquation_TextChanged (object sender, EventArgs e)
 
void cbSelfMade_CheckedChanged (object sender, EventArgs e)
 
void bthelp_Click (object sender, EventArgs e)
 
void tbSelfMadeEquation_Enter (object sender, EventArgs e)
 
void tbSelfMadeEquation_KeyPress (object sender, KeyPressEventArgs e)
 
void InitializeComponent ()
 Required method for Designer support - do not modify the contents of this method with the code editor. More...
 

Private Attributes

SampledDataSet trainingData = null
 
SampledDataSet verificationData = null
 
SampledDataSet defaultFunctionData = null
 
INeuralApproximator approximator = new NeuralApproximatorNeuron()
 
int hiddenNeuron = 5
 
int maxEpoch = 5000
 
int epochInBundle = 500
 
double rmsError = 0.001
 
double learningRate = 0.3
 
double momentum = 0.6
 
int samples = 3
 
int nnType = 1
 
double lowHorizontalLimit = -5.0
 
double highHorizontalLimit = 5.0
 
double lowVerificationHorizontalLimit = -5.0
 
double highVerificationHorizontalLimit = 5.0
 
double inputSafetyFactor = 1.3
 
double outputSafetyFactor = 1.3
 
bool multipleThread = false
 
int noThreads = 100
 
int thread = 0
 
double tmpMaxMaxTrainError = 0.0
 
double tmpAvgMaxTrainError = 0.0
 
double tmpMaxMinTrainError = 1.0
 
double tmpAvgMinTrainError = 1.0
 
double tmpMaxMaxVerifError = 0.0
 
double tmpAvgMaxVerifError = 0.0
 
double tmpMaxMinVerifError = 1.0
 
double tmpAvgMinVerifError = 1.0
 
double abc = 0
 
string equation = "x*x"
 
GraphPane pane
 
LineItem trainingPoints
 
LineItem[] approximatedLine
 
LineItem defaultFunction
 
System.ComponentModel.IContainer components = null
 Required designer variable. More...
 
ZedGraph.ZedGraphControl functionGraph
 
System.Windows.Forms.Button btStart
 
System.Windows.Forms.Button btnReset
 
System.Windows.Forms.TextBox tbMaxError
 
System.Windows.Forms.Label label1
 
System.Windows.Forms.Label label2
 
System.Windows.Forms.TextBox tbAverageError
 
System.Windows.Forms.CheckBox cbxAforge
 
System.Windows.Forms.CheckBox cbxNeuron
 
System.Windows.Forms.Label label3
 
System.Windows.Forms.Label label4
 
System.Windows.Forms.Label label5
 
System.Windows.Forms.Label label6
 
System.Windows.Forms.Label label7
 
System.Windows.Forms.Label label8
 
System.Windows.Forms.NumericUpDown numMaxEpoch
 
System.Windows.Forms.NumericUpDown numEpochBundle
 
System.Windows.Forms.NumericUpDown numRMS
 
System.Windows.Forms.NumericUpDown numLearningRate
 
System.Windows.Forms.NumericUpDown numMomentum
 
System.Windows.Forms.Label label9
 
System.Windows.Forms.NumericUpDown numSamples
 
System.Windows.Forms.NumericUpDown numHiddenNeuron
 
System.Windows.Forms.Label label11
 
System.Windows.Forms.Button btnGenerateOptData
 
System.Windows.Forms.TextBox tbAvgTrainError
 
System.Windows.Forms.Label label12
 
System.Windows.Forms.Label label13
 
System.Windows.Forms.TextBox tbMaxTrainError
 
System.Windows.Forms.NumericUpDown numLowLimit
 
System.Windows.Forms.NumericUpDown numHighLimit
 
System.Windows.Forms.Label label14
 
System.Windows.Forms.NumericUpDown numInputSafety
 
System.Windows.Forms.Label label15
 
System.Windows.Forms.NumericUpDown numOutputSafety
 
System.Windows.Forms.Label label16
 
System.Windows.Forms.TextBox tbAvgMinTrainError
 
System.Windows.Forms.TextBox tbMaxMinTrainError
 
System.Windows.Forms.TextBox tbAverageMinError
 
System.Windows.Forms.TextBox tbMaxMinError
 
System.Windows.Forms.Label label17
 
System.Windows.Forms.Label labelMaxError
 
System.Windows.Forms.CheckBox cbMultipleThread
 
System.Windows.Forms.NumericUpDown numThreads
 
System.Windows.Forms.Label labMultipleThread
 
System.Windows.Forms.Label label19
 
System.Windows.Forms.TextBox tbEquationError
 
System.Windows.Forms.ComboBox cbEquation
 
System.Windows.Forms.CheckBox cbRandomData
 
System.Windows.Forms.Label label10
 
System.Windows.Forms.Label label20
 
System.Windows.Forms.CheckBox cbSelfMade
 
System.Windows.Forms.TextBox tbSelfMadeEquation
 
System.Windows.Forms.Button bthelp
 
System.Windows.Forms.ToolTip toolTip
 
ZedGraph.ZedGraphControl zedGraphControl1
 

Static Private Attributes

static readonly Color enabledColor = Color.Tomato
 
static readonly Color disabledColor = Color.Goldenrod
 

Constructor & Destructor Documentation

IG.Neural.Forms.Old.FormNeural1DOld.FormNeural1DOld ( )
inline

Member Function Documentation

void IG.Neural.Forms.Old.FormNeural1DOld.LoadForm ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.btnGenerateOptData_Click ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.PrepareTrainingPoints ( bool  randomPoints)
inlineprivate
IRealFunction IG.Neural.Forms.Old.FormNeural1DOld.createFunction ( )
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.cbxAforge_CheckedChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.cbxNeuron_CheckedChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.numMaxEpoch_ValueChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.numEpochBundle_ValueChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.numRMS_ValueChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.numLearningRate_ValueChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.numMomentum_ValueChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.numSamples_ValueChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.numHiddenNeuron_ValueChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.numLowLimit_ValueChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.numHighLimit_ValueChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.numInputSafety_ValueChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.numOutputSafety_ValueChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.cbEquation_SelectedIndexChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.WriteDefaultFunction ( )
inlineprivate
string IG.Neural.Forms.Old.FormNeural1DOld.OnPointEdit ( ZedGraphControl  sender,
GraphPane  pane,
CurveItem  curve,
int  iPt 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.EnableControls ( bool  enabled)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.CleanseGraph ( bool  dafaultF,
bool  approximatedF,
bool  trainingF 
)
inlineprivate

Parameters
dafaultFFlag to clean default Line.
approximatedFFlag to clean approximated Line.
trainingFFlag to clean training points.
void IG.Neural.Forms.Old.FormNeural1DOld.GraphDimensions ( SampledDataSet  data)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.WriteTrainingPoints ( SampledDataSet  trainingData)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.Stop ( )
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.CalculateError ( IVector[]  exactOutputValues,
IVector[]  approximatedOutputValues,
ref double  maxError,
ref double  averageError 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.btnReset_Click ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.cbMultipleThread_CheckedChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.numThreads_ValueChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.numFunctionType_ValueChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.tbSelfMadeEquation_TextChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.cbSelfMade_CheckedChanged ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.bthelp_Click ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.tbSelfMadeEquation_Enter ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Neural.Forms.Old.FormNeural1DOld.tbSelfMadeEquation_KeyPress ( object  sender,
KeyPressEventArgs  e 
)
inlineprivate
override void IG.Neural.Forms.Old.FormNeural1DOld.Dispose ( bool  disposing)
inlineprotected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.
void IG.Neural.Forms.Old.FormNeural1DOld.InitializeComponent ( )
inlineprivate

Required method for Designer support - do not modify the contents of this method with the code editor.

Member Data Documentation

SampledDataSet IG.Neural.Forms.Old.FormNeural1DOld.trainingData = null
private
SampledDataSet IG.Neural.Forms.Old.FormNeural1DOld.verificationData = null
private
SampledDataSet IG.Neural.Forms.Old.FormNeural1DOld.defaultFunctionData = null
private
INeuralApproximator IG.Neural.Forms.Old.FormNeural1DOld.approximator = new NeuralApproximatorNeuron()
private
int IG.Neural.Forms.Old.FormNeural1DOld.hiddenNeuron = 5
private
int IG.Neural.Forms.Old.FormNeural1DOld.maxEpoch = 5000
private
int IG.Neural.Forms.Old.FormNeural1DOld.epochInBundle = 500
private
double IG.Neural.Forms.Old.FormNeural1DOld.rmsError = 0.001
private
double IG.Neural.Forms.Old.FormNeural1DOld.learningRate = 0.3
private
double IG.Neural.Forms.Old.FormNeural1DOld.momentum = 0.6
private
int IG.Neural.Forms.Old.FormNeural1DOld.samples = 3
private
int IG.Neural.Forms.Old.FormNeural1DOld.nnType = 1
private
double IG.Neural.Forms.Old.FormNeural1DOld.lowHorizontalLimit = -5.0
private
double IG.Neural.Forms.Old.FormNeural1DOld.highHorizontalLimit = 5.0
private
double IG.Neural.Forms.Old.FormNeural1DOld.lowVerificationHorizontalLimit = -5.0
private
double IG.Neural.Forms.Old.FormNeural1DOld.highVerificationHorizontalLimit = 5.0
private
double IG.Neural.Forms.Old.FormNeural1DOld.inputSafetyFactor = 1.3
private
double IG.Neural.Forms.Old.FormNeural1DOld.outputSafetyFactor = 1.3
private
bool IG.Neural.Forms.Old.FormNeural1DOld.multipleThread = false
private
int IG.Neural.Forms.Old.FormNeural1DOld.noThreads = 100
private
int IG.Neural.Forms.Old.FormNeural1DOld.thread = 0
private
double IG.Neural.Forms.Old.FormNeural1DOld.tmpMaxMaxTrainError = 0.0
private
double IG.Neural.Forms.Old.FormNeural1DOld.tmpAvgMaxTrainError = 0.0
private
double IG.Neural.Forms.Old.FormNeural1DOld.tmpMaxMinTrainError = 1.0
private
double IG.Neural.Forms.Old.FormNeural1DOld.tmpAvgMinTrainError = 1.0
private
double IG.Neural.Forms.Old.FormNeural1DOld.tmpMaxMaxVerifError = 0.0
private
double IG.Neural.Forms.Old.FormNeural1DOld.tmpAvgMaxVerifError = 0.0
private
double IG.Neural.Forms.Old.FormNeural1DOld.tmpMaxMinVerifError = 1.0
private
double IG.Neural.Forms.Old.FormNeural1DOld.tmpAvgMinVerifError = 1.0
private
double IG.Neural.Forms.Old.FormNeural1DOld.abc = 0
private
string IG.Neural.Forms.Old.FormNeural1DOld.equation = "x*x"
private
GraphPane IG.Neural.Forms.Old.FormNeural1DOld.pane
private
LineItem IG.Neural.Forms.Old.FormNeural1DOld.trainingPoints
private
LineItem [] IG.Neural.Forms.Old.FormNeural1DOld.approximatedLine
private
LineItem IG.Neural.Forms.Old.FormNeural1DOld.defaultFunction
private
readonly Color IG.Neural.Forms.Old.FormNeural1DOld.enabledColor = Color.Tomato
staticprivate
readonly Color IG.Neural.Forms.Old.FormNeural1DOld.disabledColor = Color.Goldenrod
staticprivate
System.ComponentModel.IContainer IG.Neural.Forms.Old.FormNeural1DOld.components = null
private

Required designer variable.

ZedGraph.ZedGraphControl IG.Neural.Forms.Old.FormNeural1DOld.functionGraph
private
System.Windows.Forms.Button IG.Neural.Forms.Old.FormNeural1DOld.btStart
private
System.Windows.Forms.Button IG.Neural.Forms.Old.FormNeural1DOld.btnReset
private
System.Windows.Forms.TextBox IG.Neural.Forms.Old.FormNeural1DOld.tbMaxError
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label1
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label2
private
System.Windows.Forms.TextBox IG.Neural.Forms.Old.FormNeural1DOld.tbAverageError
private
System.Windows.Forms.CheckBox IG.Neural.Forms.Old.FormNeural1DOld.cbxAforge
private
System.Windows.Forms.CheckBox IG.Neural.Forms.Old.FormNeural1DOld.cbxNeuron
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label3
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label4
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label5
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label6
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label7
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label8
private
System.Windows.Forms.NumericUpDown IG.Neural.Forms.Old.FormNeural1DOld.numMaxEpoch
private
System.Windows.Forms.NumericUpDown IG.Neural.Forms.Old.FormNeural1DOld.numEpochBundle
private
System.Windows.Forms.NumericUpDown IG.Neural.Forms.Old.FormNeural1DOld.numRMS
private
System.Windows.Forms.NumericUpDown IG.Neural.Forms.Old.FormNeural1DOld.numLearningRate
private
System.Windows.Forms.NumericUpDown IG.Neural.Forms.Old.FormNeural1DOld.numMomentum
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label9
private
System.Windows.Forms.NumericUpDown IG.Neural.Forms.Old.FormNeural1DOld.numSamples
private
System.Windows.Forms.NumericUpDown IG.Neural.Forms.Old.FormNeural1DOld.numHiddenNeuron
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label11
private
System.Windows.Forms.Button IG.Neural.Forms.Old.FormNeural1DOld.btnGenerateOptData
private
System.Windows.Forms.TextBox IG.Neural.Forms.Old.FormNeural1DOld.tbAvgTrainError
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label12
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label13
private
System.Windows.Forms.TextBox IG.Neural.Forms.Old.FormNeural1DOld.tbMaxTrainError
private
System.Windows.Forms.NumericUpDown IG.Neural.Forms.Old.FormNeural1DOld.numLowLimit
private
System.Windows.Forms.NumericUpDown IG.Neural.Forms.Old.FormNeural1DOld.numHighLimit
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label14
private
System.Windows.Forms.NumericUpDown IG.Neural.Forms.Old.FormNeural1DOld.numInputSafety
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label15
private
System.Windows.Forms.NumericUpDown IG.Neural.Forms.Old.FormNeural1DOld.numOutputSafety
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label16
private
System.Windows.Forms.TextBox IG.Neural.Forms.Old.FormNeural1DOld.tbAvgMinTrainError
private
System.Windows.Forms.TextBox IG.Neural.Forms.Old.FormNeural1DOld.tbMaxMinTrainError
private
System.Windows.Forms.TextBox IG.Neural.Forms.Old.FormNeural1DOld.tbAverageMinError
private
System.Windows.Forms.TextBox IG.Neural.Forms.Old.FormNeural1DOld.tbMaxMinError
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label17
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.labelMaxError
private
System.Windows.Forms.CheckBox IG.Neural.Forms.Old.FormNeural1DOld.cbMultipleThread
private
System.Windows.Forms.NumericUpDown IG.Neural.Forms.Old.FormNeural1DOld.numThreads
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.labMultipleThread
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label19
private
System.Windows.Forms.TextBox IG.Neural.Forms.Old.FormNeural1DOld.tbEquationError
private
System.Windows.Forms.ComboBox IG.Neural.Forms.Old.FormNeural1DOld.cbEquation
private
System.Windows.Forms.CheckBox IG.Neural.Forms.Old.FormNeural1DOld.cbRandomData
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label10
private
System.Windows.Forms.Label IG.Neural.Forms.Old.FormNeural1DOld.label20
private
System.Windows.Forms.CheckBox IG.Neural.Forms.Old.FormNeural1DOld.cbSelfMade
private
System.Windows.Forms.TextBox IG.Neural.Forms.Old.FormNeural1DOld.tbSelfMadeEquation
private
System.Windows.Forms.Button IG.Neural.Forms.Old.FormNeural1DOld.bthelp
private
System.Windows.Forms.ToolTip IG.Neural.Forms.Old.FormNeural1DOld.toolTip
private
ZedGraph.ZedGraphControl IG.Neural.Forms.Old.FormNeural1DOld.zedGraphControl1
private

The documentation for this class was generated from the following files: