本文整理汇总了C#中cExtendedTable.Add方法的典型用法代码示例。如果您正苦于以下问题:C# cExtendedTable.Add方法的具体用法?C# cExtendedTable.Add怎么用?C# cExtendedTable.Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cExtendedTable
的用法示例。
在下文中一共展示了cExtendedTable.Add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetPropertyTable
public cExtendedTable GetPropertyTable()
{
cExtendedTable ToReturn = new cExtendedTable();
ToReturn.Name = this.Name + " - Properties";
cExtendedList Properties = new cExtendedList("Properties");
ToReturn.Add(Properties);
ToReturn.ListRowNames = new List<string>();
ToReturn.ListRowNames.Add("Dimension X");
Properties.Add(this.Width);
ToReturn.ListRowNames.Add("Dimension Y");
Properties.Add(this.Height);
ToReturn.ListRowNames.Add("Dimension Z");
Properties.Add(this.Depth);
ToReturn.ListRowNames.Add("Voxel Size X");
Properties.Add(this.Resolution.X);
ToReturn.ListRowNames.Add("Voxel Size Y");
Properties.Add(this.Resolution.Y);
ToReturn.ListRowNames.Add("Voxel Size Z");
Properties.Add(this.Resolution.Z);
ToReturn.ListRowNames.Add("Position X");
Properties.Add(this.Position.X);
ToReturn.ListRowNames.Add("Position Y");
Properties.Add(this.Position.Y);
ToReturn.ListRowNames.Add("Position Z");
Properties.Add(this.Position.Z);
ToReturn.ListRowNames.Add("Channel Numbers");
Properties.Add(this.GetNumChannels());
for (int i = 0; i < this.GetNumChannels(); i++)
{
ToReturn.ListRowNames.Add(this.SingleChannelImage[i].Name + " - Wavelenght");
Properties.Add(i);
}
return ToReturn;
}
示例2: GetLiveListValues
public cExtendedTable GetLiveListValues()
{
cExtendedTable CET = new cExtendedTable();
CET.Name = Input.Name;
//foreach (DataGridViewColumn item in GridView.SelectedColumns)
for (int ColumnSelected = 0; ColumnSelected < GridView.SelectedColumns.Count; ColumnSelected++)
{
CET.Add(new cExtendedList());
for (int i = 0; i < GridView.Rows.Count - 1; i++)
{
CET[ColumnSelected].Add(double.Parse(GridView[GridView.SelectedColumns[ColumnSelected].Index, i].Value.ToString()));
}
//GridView[item.Index,
//CET.Add();
}
//GridView.SelectedColumns
return CET;
}
示例3: dToolStripMenuItemScatterPlot3D_Click
private void dToolStripMenuItemScatterPlot3D_Click(object sender, EventArgs e)
{
int MaxNumberOfPts = (int)cGlobalInfo.OptionsWindow.FFAllOptions.numericUpDownMinNumPointForFastDisp.Value;
if (cGlobalInfo.CurrentScreening.ListPlatesActive.GetListActiveWells().Count > MaxNumberOfPts)
{
cExtendedTable ET = cGlobalInfo.CurrentScreening.ListPlatesActive.GetListActiveWells().GetAverageDescriptorValues(cGlobalInfo.CurrentScreening.ListDescriptors.GetActiveDescriptors(), false, false);
cNormalize N = new cNormalize();
N.SetInputData(ET);
N.NormalizationType = eNormalizationType.MIN_MAX;
N.Run();
cExtendedTable NormTable = N.GetOutPut();
cViewer3D V3D = new cViewer3D();
c3DPointCloud _3DPtCloud = new c3DPointCloud(NormTable);
_3DPtCloud.AutomatedPtColorMode = 1;
_3DPtCloud.Create(new cPoint3D(0, 0, 0));
_3DPtCloud.SetName("_3DPtCloud");
cListGeometric3DObject GlobalList = new cListGeometric3DObject("3D Point Cloud MetaObject");
GlobalList.Add(_3DPtCloud);
c3DObject_Axis Axis = new c3DObject_Axis();
cExtendedTable T = new cExtendedTable();
T.Add(new cExtendedList(ET[0].Name));
T[0].Tag = ET[0].Tag;
T[0].Add(0);
T[0].Add(1);
T.Add(new cExtendedList(ET[1].Name));
T[1].Tag = ET[1].Tag;
T[1].Add(0);
T[1].Add(1);
if (ET.Count > 2)
{
T.Add(new cExtendedList(ET[2].Name));
T[2].Tag = ET[2].Tag;
T[2].Add(0);
T[2].Add(1);
}
Axis.SetInputData(T);
c3DNewWorld MyWorld = new c3DNewWorld(new cPoint3D(1, 1, 1), new cPoint3D(1, 1, 1));
Axis.Run(MyWorld);
GlobalList.AddRange(Axis.GetOutPut());
// GlobalList.Add(Axis);
foreach (var item in GlobalList)
{
MyWorld.AddGeometric3DObject(item);
}
// MyWorld.BackGroundColor = cGlobalInfo.OptionsWindow.FFAllOptions.panelFor3DBackColor.BackColor;
V3D.SetInputData(MyWorld);
V3D.Run();
cDisplayToWindow DTW = new cDisplayToWindow();
DTW.SetInputData(V3D.GetOutPut());
DTW.Title = "3D Cloud Point - " + ET[0].Count + " points";
DTW.Run();
DTW.Display();
}
else
{
cGlobalInfo.OptionsWindow.checkBoxConnectDRCPts.Checked = false;
FormFor3DDataDisplay FormToDisplayXYZ = new FormFor3DDataDisplay(ProcessModeEntireScreeningToolStripMenuItem.Checked, cGlobalInfo.CurrentScreening);
for (int i = 0; i < (int)cGlobalInfo.CurrentScreening.ListDescriptors.Count; i++)
{
FormToDisplayXYZ.comboBoxDescriptorX.Items.Add(cGlobalInfo.CurrentScreening.ListDescriptors[i].GetName());
FormToDisplayXYZ.comboBoxDescriptorY.Items.Add(cGlobalInfo.CurrentScreening.ListDescriptors[i].GetName());
FormToDisplayXYZ.comboBoxDescriptorZ.Items.Add(cGlobalInfo.CurrentScreening.ListDescriptors[i].GetName());
}
FormToDisplayXYZ.Show();
FormToDisplayXYZ.comboBoxDescriptorX.Text = cGlobalInfo.CurrentScreening.ListDescriptors[0].GetName() + " ";
FormToDisplayXYZ.comboBoxDescriptorY.Text = cGlobalInfo.CurrentScreening.ListDescriptors[0].GetName() + " ";
FormToDisplayXYZ.comboBoxDescriptorZ.Text = cGlobalInfo.CurrentScreening.ListDescriptors[0].GetName() + " ";
}
return;
}
示例4: sigmoidFittToolStripMenuItem_Click
private void sigmoidFittToolStripMenuItem_Click(object sender, EventArgs e)
{
int NumberOfReplicate = 4;
int NumberOfCurves = 30;
int DRCNumberofPoints = 12;
cExtendedTable FullResults = new cExtendedTable();
FullResults.ListRowNames = new List<string>();
double RealEC50 = 0.0001;
int NumberOfDiffEC50 = 20;
int NumberOfSlopes = 100;
// for (int EC50 = 0; EC50 < NumberOfDiffEC50; EC50++)
{
//double TmpSlopeValue = 0.0;
for (int EC50 = 0; EC50 < NumberOfDiffEC50; EC50++)
//for (int SlopeTmp = 0; SlopeTmp < NumberOfSlopes; SlopeTmp++)
{
RealEC50 *= 2;
//TmpSlopeValue += 0.1;
cExtendedList ListPValues = new cExtendedList("EC50 - " + RealEC50/*TmpSlopeValue*/);
cDesignerTab DT = new cDesignerTab();
DT.IsMultiline = false;
cDataGeneratorTitration GT = new cDataGeneratorTitration();
GT.NumberOfPoint = DRCNumberofPoints;
GT.Start = 5;
GT.DilutionFactor = 2;
GT.Run();
Random RND = new Random();
//cExtendedTable EXT = new cExtendedTable();
//EXT.ListRowNames = new List<string>();
//EXT.Name = "Quality fitting Report";
//EXT.Add(new cExtendedList("Noise Level"));
//EXT.Add(new cExtendedList("Original EC50"));
//EXT.Add(new cExtendedList("Estimated EC50"));
//EXT.Add(new cExtendedList("p-Value"));
for (int i = 0; i < NumberOfCurves; i++)
{
cExtendedTable FinalTable = new cExtendedTable();
cDataGeneratorSigmoid DGS = null;
DGS = new cDataGeneratorSigmoid();
DGS.SetInputData(GT.GetOutPut()[0]);
DGS.EC50 = RealEC50;// 0.01;// 1;// 0.1;// Math.Pow((double)10, -2);
DGS.Bottom = 0;
DGS.Top = 100;
DGS.Slope = 2;// TmpSlopeValue;//1;
DGS.Run();
cAddNoise AN = new cAddNoise();
AN.DistributionType = eRandDistributionType.GAUSSIAN;
double NoiseLevel = (i + 1) * 5;
// EXT[0].Add(NoiseLevel);
// EXT[1].Add(DGS.EC50);
#region loop over the replicates
for (int NumReplic = 0; NumReplic < NumberOfReplicate; NumReplic++)
{
//AN.Mean = 0;
//AN.Stdv = 10;
//AN.SetInputData(DGS.GetOutPut());
//AN.Run();
cExtendedList NewL = DGS.GetOutPut()[1];
for (int k = 0; k < NewL.Count; k++)
{
NewL[k] += RND.NextDouble() * NoiseLevel;
}
cExtendedTable TmpTable = new cExtendedTable();
TmpTable.Add(GT.GetOutPut()[0]);
TmpTable.Add(/*AN.GetOutPut()[1]*/NewL);
if (NumReplic >= 1)
{
cMerge M = new cMerge();
M.IsHorizontal = false;
M.SetInputData(TmpTable, FinalTable);
M.Run();
FinalTable = M.GetOutPut();
}
else
FinalTable = new cExtendedTable(TmpTable);
}
//.........这里部分代码省略.........
示例5: histogramsToolStripMenuItem_Click
private void histogramsToolStripMenuItem_Click(object sender, EventArgs e)
{
cGUI_ListClasses GUIClasses = new cGUI_ListClasses();
GUIClasses.IsCheckBoxes = false;
GUIClasses.ClassType = eClassType.PHENOTYPE;
if (!GUIClasses.Run().IsSucceed) return;
cGUI_ListClasses GUIClassesWells = new cGUI_ListClasses();
GUIClassesWells.IsCheckBoxes = true;
GUIClassesWells.ClassType = eClassType.WELL;
if (!GUIClassesWells.Run().IsSucceed) return;
List<cWellClassType> ListClass = new List<cWellClassType>();
for (int i = 0; i < GUIClassesWells.GetOutPut()[0].Count; i++)
{
if (GUIClassesWells.GetOutPut()[0][i] == 1)
ListClass.Add(cGlobalInfo.ListWellClasses[i]);
}
cGUI_ListPlates GUIListPlates = new cGUI_ListPlates();
GUIListPlates.IsCheckBoxes = true;
if (!GUIListPlates.Run().IsSucceed) return;
List<cDescriptorType> LCDT = new List<cDescriptorType>();
LCDT.Add(cGlobalInfo.CurrentScreening.ListDescriptors.GetActiveDescriptor());
cDesignerTab DT = new cDesignerTab();
DT.IsMultiline = false;
foreach (var TmpPlate in GUIListPlates.GetOutPut())
{
cListWells CurrentPlateListWells = TmpPlate.ListWells.Filter(ListClass);
cExtendedTable FinalTable = new cExtendedTable();
FinalTable.Name = TmpPlate.GetName() + " - " + CurrentPlateListWells.Count + " wells";
for (int i = 0; i < GUIClasses.GetOutPut()[0].Count; i++)
{
if (GUIClasses.GetOutPut()[0][i] == 1)
{
FinalTable.Add(new cExtendedList());
FinalTable[0].Name = cGlobalInfo.ListCellularPhenotypes[i].Name;
FinalTable[0].Tag = cGlobalInfo.ListCellularPhenotypes[i];
}
}
foreach (cWell TmpWell in CurrentPlateListWells)
{
TmpWell.AssociatedPlate.DBConnection = new cDBConnection(TmpWell.AssociatedPlate, TmpWell.SQLTableName);
for (int i = 0; i < GUIClasses.GetOutPut()[0].Count; i++)
{
if (GUIClasses.GetOutPut()[0][i] == 1)
{
List<cCellularPhenotype> ListCellularPhenotypesToBeSelected = new List<cCellularPhenotype>();
ListCellularPhenotypesToBeSelected.Add(cGlobalInfo.ListCellularPhenotypes[i]);
cExtendedTable TmpET = TmpWell.AssociatedPlate.DBConnection.GetWellValues(TmpWell,
LCDT, ListCellularPhenotypesToBeSelected);
if (TmpET.Count > 0) FinalTable[0].AddRange(TmpET[0]);
break;
}
}
TmpWell.AssociatedPlate.DBConnection.CloseConnection();
}
cViewerHistogram VH = new cViewerHistogram();
//cViewerStackedHistogram VSH = new cViewerStackedHistogram();
VH.SetInputData(FinalTable);
//VH.Chart.BinNumber = -1;
//VSH.Chart.Is
//VH.ListProperties.FindByName("Bin Number").SetNewValue((int)100);
//VH.ListProperties.FindByName("Bin Number").IsGUIforValue = true;
// VSH.Chart.BinNumber = LCDT[0].GetBinNumber();
VH.Chart.IsShadow = false;
VH.Chart.IsBorder = true;
VH.Chart.IsXGrid = true;
VH.Chart.IsHistoNormalized = true;
VH.Chart.IsBar = true;
VH.Chart.IsYGrid = true;
VH.Chart.LabelAxisX = LCDT[0].GetName();
VH.Title = TmpPlate.GetName();
VH.Run();
VH.Chart.Width = 0;
VH.Chart.Height = 0;
cDesignerSplitter DS = new cDesignerSplitter();
DS.Orientation = Orientation.Vertical;
DS.SetInputData(VH.GetOutPut());
cHistogramBuilder HB = new cHistogramBuilder();
HB.SetInputData(FinalTable);
HB.BinNumber = -1;
//.........这里部分代码省略.........
示例6: statisticsToolStripMenuItem1_Click_1
private void statisticsToolStripMenuItem1_Click_1(object sender, EventArgs e)
{
string NameFunction = "";
if (_StatCVItem.Checked)
NameFunction = "Coeff. of Variation";
else if (_StatMeanItem.Checked)
NameFunction = "Mean";
else if (_StatSumItem.Checked)
NameFunction = "Sum";
else if (_StatJarqueBeraItem.Checked)
NameFunction = "Jarque-Bera";
cGUI_ListClasses GUI_ListClasses = new cGUI_ListClasses();
GUI_ListClasses.IsCheckBoxes = true;
GUI_ListClasses.IsSelectAll = true;
if (GUI_ListClasses.Run().IsSucceed == false) return;
cExtendedTable ListClassSelected = new cExtendedTable(GUI_ListClasses.GetOutPut());// GetOutPut();
int IdxClass = -1;
for (int IdxC = 0; IdxC < ListClassSelected[0].Count; IdxC++)
{
if (ListClassSelected[0][IdxC] == 1) IdxClass = IdxC;
}
#region single plate and plate by plate
cDesignerTab DT = new cDesignerTab();
if ((ProcessModeCurrentPlateOnlyToolStripMenuItem.Checked) || (ProcessModeplateByPlateToolStripMenuItem.Checked)/*||(ProcessModeEntireScreeningToolStripMenuItem.Checked)*/)
{
List<cPlate> ListPlatesToProcess = new List<cPlate>();
if ((ProcessModeplateByPlateToolStripMenuItem.Checked)/*||(ProcessModeEntireScreeningToolStripMenuItem.Checked)*/)
{
foreach (cPlate TmpPlate in cGlobalInfo.CurrentScreening.ListPlatesActive)
ListPlatesToProcess.Add(TmpPlate);
}
else
ListPlatesToProcess.Add(cGlobalInfo.CurrentScreening.GetCurrentDisplayPlate());
foreach (cPlate TmpPlate in ListPlatesToProcess)
{
cListWells ListWellsToProcess1 = new cListWells(null);
foreach (cWell item in TmpPlate.ListActiveWells)
{
if (item.GetCurrentClassIdx() != -1)
{
if (ListClassSelected[0][item.GetCurrentClassIdx()] == 1)
ListWellsToProcess1.Add(item);
}
}
cExtendedTable NewTable1 = new cExtendedTable(ListWellsToProcess1, true);
if ((NewTable1.Count == 0) || (NewTable1[0].Count < 3))
{
if (ProcessModeCurrentPlateOnlyToolStripMenuItem.Checked)
{
MessageBox.Show("Insufficient number of control wells", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
else
continue;
}
cExtendedList ListValues = new cExtendedList();
List<cDescriptorType> ListDescs = new List<cDescriptorType>();
List<string> ListNames = new List<string>();
int RealIdx = 0;
for (int IDxDesc = 0; IDxDesc < cGlobalInfo.CurrentScreening.ListDescriptors.Count; IDxDesc++)
{
if (!cGlobalInfo.CurrentScreening.ListDescriptors[IDxDesc].IsActive()) continue;
cExtendedTable TableForValues = new cExtendedTable();
TableForValues.Add(NewTable1[RealIdx]);
RealIdx++;
if (_StatJarqueBeraItem.Checked)
{
cNormalityJarqueBera JB = new cNormalityJarqueBera();
JB.SetInputData(TableForValues);
JB.Run();
ListValues.Add(JB.GetOutPut()[0][0]);
}
else
{
cStatistics CS = new cStatistics();
CS.UnselectAll();
if (_StatCVItem.Checked)
CS.IsCV = true;
else if (_StatMeanItem.Checked)
CS.IsMean = true;
else if (_StatSumItem.Checked)
CS.IsSum = true;
//.........这里部分代码省略.........
示例7: zScoreToolStripMenuItem_Click
//.........这里部分代码省略.........
cExtendedTable ListClassSelected = GUI_ListClasses.GetOutPut();
int IdxClassNeg = -1;
int IdxClassPos = -1;
for (int IdxC = 0; IdxC < ListClassSelected[0].Count; IdxC++)
{
if (ListClassSelected[0][IdxC] == 1) IdxClassNeg = IdxC;
if (ListClassSelected[1][IdxC] == 1) IdxClassPos = IdxC;
}
string SubTitle = "Z-Factor";
if (_QCZRobustItem.Checked)
SubTitle += " (Robust)";
#region Single plate
cDesignerTab DT = new cDesignerTab();
// cDesignerMultiChoices DT = new cDesignerMultiChoices();
if ((ProcessModeCurrentPlateOnlyToolStripMenuItem.Checked)/*||(ProcessModeEntireScreeningToolStripMenuItem.Checked)*/)
{
List<cPlate> ListPlatesToProcess = new List<cPlate>();
cPlate TmpPlate = cGlobalInfo.CurrentScreening.GetCurrentDisplayPlate();
// foreach (cPlate TmpPlate in ListPlatesToProcess)
// GUI_ListClasses.Get
// ListClassSelected
List<int> ListCheckBoxes = new List<int>();
for (int i = 0; i < ListClassSelected[1].Count; i++)
{
if (ListClassSelected[1][i] > 0)
ListCheckBoxes.Add(i);
}
for (int IdxClassSelected = 0; IdxClassSelected < ListCheckBoxes.Count; IdxClassSelected++)
{
cListWells ListWellsToProcess1 = new cListWells(null);
cListWells ListWellsToProcess2 = new cListWells(null);
int CurrentClassTobeProcessed = ListCheckBoxes[IdxClassSelected];
foreach (cWell item in TmpPlate.ListActiveWells)
{
if (item.GetCurrentClassIdx() != -1)
{
if (ListClassSelected[0][item.GetCurrentClassIdx()] == 1)
ListWellsToProcess1.Add(item);
if (item.GetCurrentClassIdx() == CurrentClassTobeProcessed)
// if (ListClassSelected[1][ListCheckBoxes[IdxClassSelected]] == 1)
ListWellsToProcess2.Add(item);
}
}
cExtendedTable NewTable1 = new cExtendedTable(ListWellsToProcess1, true);
cExtendedTable NewTable2 = new cExtendedTable(ListWellsToProcess2, true);
if ((NewTable1.Count == 0) || (NewTable1[0].Count < 2) || (NewTable2.Count == 0) || (NewTable2[0].Count < 2))
{
if (ProcessModeCurrentPlateOnlyToolStripMenuItem.Checked)
{
MessageBox.Show("Insufficient number of control wells", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
示例8: ToolStripMenuItem_CrossZFactor
private void ToolStripMenuItem_CrossZFactor(object sender, EventArgs e)
{
cGUI_ListSingleClasse GUI_ListClasses = new cGUI_ListSingleClasse();
GUI_ListClasses.IsCheckBoxes = true;
if (GUI_ListClasses.Run().IsSucceed == false) return;
cExtendedList ListClassSelected = GUI_ListClasses.GetOutPut();
int ClassId = 0;
//int NumActiveDesc = 0;
//foreach (cDescriptorType DescType in this.GlobalInfo.CurrentScreening.ListDescriptors)
//{
// if (DescType.IsActive() == false) continue;
// NumActiveDesc++;
//}
cExtendedTable FinalListValues = new cExtendedTable();
cExtendedTable TmpTable = new cExtendedTable();
TmpTable.Add(new cExtendedList("Sorted Z'"));
TmpTable.ListRowNames = new List<string>();
TmpTable[0].ListTags = new List<object>();
// TmpTable.ListTags = new List<object>();
for (int IdxDesc = 0; IdxDesc < cGlobalInfo.CurrentScreening.ListDescriptors.Count; IdxDesc++)
{
cDescriptorType CurrentDescType = cGlobalInfo.CurrentScreening.ListDescriptors[IdxDesc];
if (CurrentDescType.IsActive() == false) continue;
cExtendedTable ListSource = new cExtendedTable();
// int IdxClasse =0;
foreach (var item in cGlobalInfo.ListWellClasses)
{
// if (ListClassSelected[0][IdxClasse] == 1)
ListSource.Add(new cExtendedList(item.Name));
// if (ListClassSelected[1][IdxClasse] == 1)
//ListDestination.Add(new cExtendedList(item.Name));
// IdxClasse++;
}
foreach (cWell TmpWell in cGlobalInfo.ListSelectedWell)
{
ClassId = TmpWell.GetCurrentClassIdx();
if (ClassId > -1)
{
if (GUI_ListClasses.GetOutPut()[ClassId] == 1)
ListSource[ClassId].Add(TmpWell.GetAverageValue(CurrentDescType));
//if (GUI_ListClasses.GetOutPut()[1][ClassId] == 1)
//ListDestination[ClassId].Add(TmpWell.GetAverageValue(CurrentDescType));
}
}
int InitCount = ListSource.Count;
for (int i = 0; i < ListSource.Count; i++)
{
if (ListSource[i].Count < 2)
{
ListSource.RemoveAt(i);
i--;
}
}
// if (ListSource.Count == 0) return;
cZFactor ZF = new cZFactor();
ZF.SetInputData(ListSource);
cFeedBackMessage FM = ZF.Run();
richTextBoxConsole.AppendText(FM.Message);
if (!FM.IsSucceed) return;
cExtendedTable ListValues = ZF.GetOutPut();
for (int i = 0; i < ListValues.Count; i++)
{
for (int j = 0; j < i; j++)
{
TmpTable[0].Add(ListValues[i][j]);
TmpTable.ListRowNames.Add(ListValues[i].Name + " vs. " + ListValues[j].Name + " - [" + CurrentDescType.GetName() + "]");
TmpTable[0].ListTags.Add(CurrentDescType);
}
}
}
cSort S = new cSort();
S.SetInputData(TmpTable);
S.IsAscending = false;
S.Run();
//cViewerTable VT1 = new cViewerTable();
//VT1.SetInputData(ListValues);
//VT1.Run();
cViewerTable VT2 = new cViewerTable();
//.........这里部分代码省略.........
示例9: ToolStripMenuItem_Statistics
private void ToolStripMenuItem_Statistics(object sender, EventArgs e)
{
cExtendedTable CET = new cExtendedTable();
foreach (DataGridViewColumn item in GridView.SelectedColumns)
CET.Add(Input[item.Index]);
cStatistics S = new cStatistics();
S.SetInputData(CET);
S.Run();
cDisplayExtendedTable CDT = new cDisplayExtendedTable();
CDT.SetInputData(S.GetOutPut());
CDT.Run();
}
示例10: ToolStripMenuItem_OperationsClustering
private void ToolStripMenuItem_OperationsClustering(object sender, EventArgs e)
{
cClustering CC = new cClustering();
cExtendedTable CET = new cExtendedTable();
foreach (DataGridViewColumn item in GridView.SelectedColumns)
CET.Add(Input[item.Index]);
if (this.Input.ListRowNames != null)
{
CET.ListRowNames = new List<string>();
foreach (var item in this.Input.ListRowNames)
CET.ListRowNames.Add(item);
}
if (this.Input.ListTags != null)
{
CET.ListTags = new List<object>();
foreach (var item in this.Input.ListTags)
CET.ListTags.Add(item);
}
CET.Name = "Sub["+this.Input.Name+"]";
CC.SetInputData(CET);
//CC.ListProperties.FindByName("Number of Clusters").SetNewValue((int)3);
//CC.ListProperties.FindByName("Number of Clusters").IsGUIforValue = true;
if (!CC.Run().IsSucceed) return;
cDisplayExtendedTable CDT = new cDisplayExtendedTable();
CDT.SetInputData(CC.GetOutPut());
CDT.Run();
}
示例11: ToolStripMenuItem_NormStandardize
private void ToolStripMenuItem_NormStandardize(object sender, EventArgs e)
{
cExtendedTable CET = new cExtendedTable();
foreach (DataGridViewColumn item in GridView.SelectedColumns)
CET.Add(Input[item.Index].Normalize(eNormalizationType.STANDARDIZE));
CET.Name = "Standardize(" + this.Input.Name + ")";
cDisplayExtendedTable CDT = new cDisplayExtendedTable();
CDT.SetInputData(CET);
CDT.Run();
}
示例12: ToolStripMenuItem_NormMinMax
private void ToolStripMenuItem_NormMinMax(object sender, EventArgs e)
{
cExtendedTable CET = new cExtendedTable();
foreach (DataGridViewColumn item in GridView.SelectedColumns)
{
CET.Add(Input[item.Index].Normalize(eNormalizationType.MIN_MAX));
}
CET.Name = "Min-Max(" + this.Input.Name + ")";
cDisplayExtendedTable CDT = new cDisplayExtendedTable();
CDT.SetInputData(CET);
CDT.Run();
}
示例13: ToolStripMenuItem_NormalityTest
private void ToolStripMenuItem_NormalityTest(object sender, EventArgs e)
{
cExtendedTable CET = new cExtendedTable();
foreach (DataGridViewColumn item in GridView.SelectedColumns)
CET.Add(Input[item.Index]);
cComputeAndDisplayNormalPlot CDNP = new cComputeAndDisplayNormalPlot();
CDNP.SetInputData(CET);
CDNP.Run();
cDisplayToWindow DTW = new cDisplayToWindow();
DTW.SetInputData(CDNP.GetOutPut());
DTW.Title = "Normality Test";
DTW.Run();
DTW.Display();
//cNormalityJarqueBera NJB = new cNormalityJarqueBera();
//NJB.SetInputData(CET);
//cFeedBackMessage FM = NJB.Run();
//if(FM.IsSucceed==false)
//{
// System.Windows.Forms.MessageBox.Show(FM.Message, "Error !", MessageBoxButtons.OK, MessageBoxIcon.Error);
// return;
//}
//cDisplayExtendedTable CDT = new cDisplayExtendedTable();
//CDT.SetInputData(NJB.GetOutPut());
//CDT.Run();
}
示例14: ToolStripMenuItem_MINEAnalysis
private void ToolStripMenuItem_MINEAnalysis(object sender, EventArgs e)
{
cExtendedTable CET = new cExtendedTable();
foreach (DataGridViewColumn item in GridView.SelectedColumns)
CET.Add(Input[item.Index]);
cMineAnalysis MA = new cMineAnalysis();
MA.SetInputData(CET);
MA.Is_BriefReport = true;
MA.Run();
cDesignerTab SubDT = new cDesignerTab();
foreach (var item in MA.GetOutPut())
{
cViewerTable SubTable = new cViewerTable();
SubTable.Title = "MINE - " + item.Name;
SubTable.SetInputData(item);
SubTable.Run();
SubDT.SetInputData(SubTable.GetOutPut());
}
SubDT.Run();
cDisplayToWindow DW = new cDisplayToWindow();
DW.SetInputData(SubDT.GetOutPut());
DW.Title = CET.Name + " - MINE analysis";
DW.Run();
DW.Display();
}
示例15: ToolStripMenuItem_DistEuclidean
private void ToolStripMenuItem_DistEuclidean(object sender, EventArgs e)
{
cExtendedTable CET = new cExtendedTable();
foreach (DataGridViewColumn item in GridView.SelectedColumns)
CET.Add(Input[item.Index]);
cDistances CD = new cDistances();
CD.DistanceType = eDistances.EUCLIDEAN;
CD.SetInputData(CET);
CD.Run();
cDisplayExtendedTable CDT = new cDisplayExtendedTable();
CDT.SetInputData(CD.GetOutPut());
CDT.Run();
}