IGLib
1.5
The IGLib base library for development of numerical, technical and business applications.
|
Control for test evaluation of scalar functions. More...
Public Member Functions | |
ScalarFunctionEvaluatorControl (IScalarFunction function, string[] parameterNames, double[] parameterValues) | |
Constructs the control, with ANN-based model specified. More... | |
DataGridView | GetGridControl () |
Returns the DataGridView control that is used for setting values of the input parameters. More... | |
void | InitializeCells () |
Initializes contents of the DataGridView. More... | |
void | DataToGrid () |
Copies internal data to grid view. More... | |
void | DataFromGrid () |
Copies internal data to grid view. More... | |
void | ClearCells () |
Clears contents of all DataGridView cells. More... | |
void | ClearDataGrid () |
Removes all the data from the DataGridView. More... | |
void | ResetToDefault () |
Resets cells to default values. More... | |
void | ShowContextMenuControl (object sender, MouseEventArgs e) |
Protected Member Functions | |
void | SetDefaultParameterNames (int dim, string baseName="x") |
Sets parameter names to default. More... | |
void | SetDefaultParameterValues (int dim, double defaultValue=0) |
Sets parameter values to default. More... | |
void | CalculateFunctionValue () |
override void | Dispose (bool disposing) |
Clean up any resources being used. More... | |
Protected Attributes | |
int | _colNumValue = 2 |
bool | _gridEvents = true |
Properties | |
IScalarFunction | Function [get, set] |
Scalar function that is evaluated by the current control. More... | |
string[] | ParameterNames [get, set] |
Names of function parameters, shown in data grid. More... | |
double[] | ParameterValues [get, set] |
Valuse of parameters, shown in data grid. More... | |
int | NumParameters [get, set] |
Gets or sets number of parameters. More... | |
int | ColNumValue [get, protected set] |
Number of DataGrid Column that contains the value. More... | |
Private Member Functions | |
void | ScalarFunctionEvaluatorControl_MouseClick (object sender, MouseEventArgs e) |
void | dGridInputParam_MouseClick (object sender, MouseEventArgs e) |
void | btnResetDefault_Click (object sender, EventArgs e) |
void | btnCalculate_Click (object sender, EventArgs e) |
void | dGridInputParam_CellValueChanged (object sender, DataGridViewCellEventArgs e) |
void | resetToDefaultToolStripMenuItem_Click (object sender, EventArgs e) |
void | InitializeComponent () |
Required method for Designer support - do not modify the contents of this method with the code editor. More... | |
Private Attributes | |
IScalarFunction | _function |
string[] | _parameterNames |
double[] | _parameterValues |
System.ComponentModel.IContainer | components = null |
Required designer variable. More... | |
System.Windows.Forms.GroupBox | groupBox1 |
System.Windows.Forms.DataGridView | dGridInputParam |
System.Windows.Forms.DataGridViewTextBoxColumn | columnID |
System.Windows.Forms.DataGridViewTextBoxColumn | columnName |
System.Windows.Forms.DataGridViewTextBoxColumn | columnValue |
System.Windows.Forms.Button | btnResetDefault |
System.Windows.Forms.Button | btnCalculate |
System.Windows.Forms.ContextMenuStrip | contextMenuControl |
System.Windows.Forms.ToolStripMenuItem | resetToDefaultToolStripMenuItem |
System.Windows.Forms.Label | label1 |
System.Windows.Forms.TextBox | txtValue |
System.Windows.Forms.Label | lblParameters |
Control for test evaluation of scalar functions.
User can define input parameter values and evaluate the function at those parameters.
$A Igor Jul14;
|
inline |
Constructs the control, with ANN-based model specified.
neuralModel | ANN-based model, containing data definitions and trained neural network. |
|
inlineprotected |
Sets parameter names to default.
dim | Number of parameters. |
baseName | Optiional base name for parameters. |
|
inlineprotected |
Sets parameter values to default.
dim | Number of parameters. |
defaultValue | Optional default value, if not specified then 0. |
|
inline |
Returns the DataGridView control that is used for setting values of the input parameters.
|
inline |
Initializes contents of the DataGridView.
|
inline |
Copies internal data to grid view.
|
inline |
Copies internal data to grid view.
References IG.Lib.UtilStr.ToDouble().
|
inline |
Clears contents of all DataGridView cells.
|
inline |
Removes all the data from the DataGridView.
|
inline |
Resets cells to default values.
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprotected |
|
inlineprivate |
|
inlineprivate |
References IG.Lib.Util.SleepSeconds().
|
inlineprivate |
|
inlineprotected |
Clean up any resources being used.
disposing | true if managed resources should be disposed; otherwise, false. |
|
inlineprivate |
Required method for Designer support - do not modify the contents of this method with the code editor.
|
private |
|
private |
|
private |
|
protected |
|
protected |
|
private |
Required designer variable.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
getset |
Scalar function that is evaluated by the current control.
|
getset |
Names of function parameters, shown in data grid.
|
getset |
Valuse of parameters, shown in data grid.
|
getset |
Gets or sets number of parameters.
|
getprotected set |
Number of DataGrid Column that contains the value.