当前位置: 首页>>代码示例>>C#>>正文


C# Altaxo.ContainsDataColumn方法代码示例

本文整理汇总了C#中Altaxo.ContainsDataColumn方法的典型用法代码示例。如果您正苦于以下问题:C# Altaxo.ContainsDataColumn方法的具体用法?C# Altaxo.ContainsDataColumn怎么用?C# Altaxo.ContainsDataColumn使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Altaxo的用法示例。


在下文中一共展示了Altaxo.ContainsDataColumn方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PlotCrossPredictedVersusActualY

		/// <summary>
		/// Plots the cross predicted versus actual Y (concentration) into a provided layer.
		/// </summary>
		/// <param name="table">The table of PLS output data.</param>
		/// <param name="layer">The layer to plot into.</param>
		/// <param name="whichY">The number of the component (y, concentration etc.) for which to plot the residuals.</param>
		/// <param name="numberOfFactors">The number of factors used for calculation of the residuals.</param>
		public static void PlotCrossPredictedVersusActualY(Altaxo.Data.DataTable table, XYPlotLayer layer, int whichY, int numberOfFactors)
		{
			string ypredcolname = WorksheetAnalysis.GetYCrossPredicted_ColumnName(whichY, numberOfFactors);
			string yactcolname = WorksheetAnalysis.GetYOriginal_ColumnName(whichY);
			if (!table.ContainsDataColumn(ypredcolname))
			{
				GetAnalysis(table).CalculateCrossPredictedAndResidual(table, whichY, numberOfFactors, true, false, false);
			}

			PlotOnlyLabel(layer, table, table[yactcolname], table[ypredcolname], table[WorksheetAnalysis.GetMeasurementLabel_ColumnName()]);

			layer.DefaultXAxisTitleString = string.Format("Y original{0}", whichY);
			layer.DefaultYAxisTitleString = string.Format("Y cross predicted{0} (#factors:{1})", whichY, numberOfFactors);
		}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:21,代码来源:ChemometricCommands.cs

示例2: PlotPredictionScores

		/// <summary>
		/// Plots all preprocessed spectra into a newly created graph.
		/// </summary>
		/// <param name="table">The table of PLS output data.</param>
		public static void PlotPredictionScores(Altaxo.Data.DataTable table)
		{
			MultivariateContentMemento plsMemo = table.GetTableProperty("Content") as MultivariateContentMemento;
			if (plsMemo == null)
				return;
			if (plsMemo.PreferredNumberOfFactors <= 0)
				QuestPreferredNumberOfFactors(plsMemo);

			GetAnalysis(table).CalculateAndStorePredictionScores(table, plsMemo.PreferredNumberOfFactors);

			AscendingIntegerCollection sel = new AscendingIntegerCollection();

			for (int i = 0; i < plsMemo.NumberOfConcentrationData; i++)
			{
				string name = WorksheetAnalysis.GetPredictionScore_ColumnName(i, plsMemo.PreferredNumberOfFactors);
				if (table.ContainsDataColumn(name))
					sel.Add(table.DataColumns.GetColumnNumber(table[name]));
			}

			string newName = string.Format("GPredScores#{0}F", plsMemo.PreferredNumberOfFactors);
			newName = Main.ProjectFolder.CreateFullName(table.Name, newName);
			Worksheet.Commands.PlotCommands.PlotLine(table, sel, true, false, newName);
		}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:27,代码来源:ChemometricCommands.cs

示例3: PlotXResiduals

		/// <summary>
		/// Plots the x (spectral) residuals into a provided layer.
		/// </summary>
		/// <param name="table">The table of PLS output data.</param>
		/// <param name="layer">The layer to plot into.</param>
		/// <param name="whichY">The number of the component (y, concentration etc.) for which to plot the residuals.</param>
		/// <param name="numberOfFactors">The number of factors used for calculation of the residuals.</param>
		public static void PlotXResiduals(Altaxo.Data.DataTable table, XYPlotLayer layer, int whichY, int numberOfFactors)
		{
			string xresidualcolname = WorksheetAnalysis.GetXResidual_ColumnName(whichY, numberOfFactors);
			string yactcolname = WorksheetAnalysis.GetYOriginal_ColumnName(whichY);

			if (!table.ContainsDataColumn(xresidualcolname))
			{
				GetAnalysis(table).CalculateXResidual(table, whichY, numberOfFactors);
			}

			PlotOnlyLabel(layer, table, table[yactcolname], table[xresidualcolname], table[WorksheetAnalysis.GetMeasurementLabel_ColumnName()]);

			layer.DefaultXAxisTitleString = string.Format("Y original{0}", whichY);
			layer.DefaultYAxisTitleString = string.Format("X residual{0} (#factors:{1})", whichY, numberOfFactors);
		}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:22,代码来源:ChemometricCommands.cs

示例4: PlotXLeverage

		/// <summary>
		/// Plots the x (spectral) leverage into a provided layer.
		/// </summary>
		/// <param name="table">The table of PLS output data.</param>
		/// <param name="layer">The layer to plot into.</param>
		/// <param name="preferredNumberOfFactors">The number of factors used for leverage calculation.</param>
		public static void PlotXLeverage(Altaxo.Data.DataTable table, XYPlotLayer layer, int preferredNumberOfFactors)
		{
			string xcolname = WorksheetAnalysis.GetMeasurementLabel_ColumnName();
			string ycolname = WorksheetAnalysis.GetXLeverage_ColumnName(preferredNumberOfFactors);

			if (!table.ContainsDataColumn(ycolname))
			{
				GetAnalysis(table).CalculateXLeverage(table, preferredNumberOfFactors);
			}

			PlotOnlyLabel(layer, table, table[xcolname], table[ycolname], table[WorksheetAnalysis.GetMeasurementLabel_ColumnName()]);

			layer.DefaultXAxisTitleString = string.Format("Measurement");
			layer.DefaultYAxisTitleString = string.Format("Score leverage (#factors:{0})", preferredNumberOfFactors);
		}
开发者ID:Altaxo,项目名称:Altaxo,代码行数:21,代码来源:ChemometricCommands.cs


注:本文中的Altaxo.ContainsDataColumn方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。