Exemple #1
0
        /// <summary>
        /// Plots the x (spectral) leverage into a graph.
        /// </summary>
        /// <param name="table">The table with the PLS model data.</param>
        public static void PlotXLeverage(Altaxo.Data.DataTable table)
        {
            MultivariateContentMemento plsMemo = table.GetTableProperty("Content") as MultivariateContentMemento;

            if (plsMemo == null)
            {
                return;
            }
            if (plsMemo.PreferredNumberOfFactors <= 0)
            {
                QuestPreferredNumberOfFactors(plsMemo);
            }

            Altaxo.Graph.GUI.IGraphController graphctrl = Current.ProjectService.CreateNewGraph();
            PlotXLeverage(table, graphctrl.Doc.Layers[0], plsMemo.PreferredNumberOfFactors);
        }
Exemple #2
0
        /// <summary>
        /// Plots the cross prediction values of all y components invidually in a  graph.
        /// </summary>
        /// <param name="table">The table with the PLS model data.</param>
        public static void PlotCrossPredictedVersusActualY(Altaxo.Data.DataTable table)
        {
            MultivariateContentMemento plsMemo = table.GetTableProperty("Content") as MultivariateContentMemento;

            if (plsMemo == null)
            {
                return;
            }
            if (plsMemo.PreferredNumberOfFactors <= 0)
            {
                QuestPreferredNumberOfFactors(plsMemo);
            }

            for (int nComponent = 0; nComponent < plsMemo.NumberOfConcentrationData; nComponent++)
            {
                Altaxo.Graph.GUI.IGraphController graphctrl = Current.ProjectService.CreateNewGraph();
                PlotCrossPredictedVersusActualY(table, graphctrl.Doc.Layers[0], nComponent, plsMemo.PreferredNumberOfFactors);
            }
        }
Exemple #3
0
 /// <summary>
 /// Plots the cross PRESS value into a provided layer.
 /// </summary>
 /// <param name="table">The table of PLS output data.</param>
 public static void PlotCrossPRESSValue(Altaxo.Data.DataTable table)
 {
     Altaxo.Graph.GUI.IGraphController graphctrl = Current.ProjectService.CreateNewGraph();
     PlotCrossPRESSValue(table, graphctrl.Doc.Layers[0]);
 }