コード例 #1
0
ファイル: Analytics.cs プロジェクト: koay9f/EnPI
        public EnergySource(string Name, double[,] Xs, double[] Ys, List <string[]> Combinations)
        {
            try
            {
                Models = new ModelCollection();

                foreach (string[] Variables in Combinations)
                {
                    Model model = Models.New();
                    model.Xs            = Xs;
                    model.Ys            = Ys;
                    model.VariableNames = Variables;
                    model.Run();
                }
            }
            catch
            {
            }
        }
コード例 #2
0
ファイル: Analytics.cs プロジェクト: koay9f/EnPI
        public void AddModels()
        {
            try
            {
                Models.Clear();

                foreach (string[] Variables in Combinations)
                {
                    Model model = Models.New();
                    model.Xs            = DataHelper.dataTableArray(knownXs, Variables);
                    model.Ys            = Ys;
                    model.VariableNames = Variables;
                    model.Run();
                }
                //Models to public ModelCollection
            }
            catch
            {
                throw;
            }
        }