Exemple #1
0
        public void BuildGraph3D(string symbolSource, string firstParameterName, string secondParameterName)
        {
            SymbolResult input = SymbolResult.Load(symbolSource);

            foreach (TestResult currTestResult in input.testResults)
            {
                foreach (OnePeriodResult currOnePeriodResult in currTestResult.listOnePeriodresult)
                {
                    Graph3DAnalyzer graph3DAnalyzer = new Graph3DAnalyzer();
                    foreach (var currSRS in currOnePeriodResult.ISResult)
                    {
                        graph3DAnalyzer.Process(currSRS.Key[firstParameterName], currSRS.Key[secondParameterName],
                                                currSRS.Value.CalculateConfidenceIntervalLow);
                    }
                    Graph3DScript graph3DScript = new Graph3DScript(firstParameterName, secondParameterName, "CalculateConfidenceIntervalLow",
                                                                    graph3DAnalyzer, Path.Combine(currOnePeriodResult.RoorDirectory, typeof(Graph3DScript).ToString()));
                    graph3DScript.Save();
                }
            }
        }
Exemple #2
0
        static void Main(string[] args)
        {
            List <int>    xs     = new List <int>();
            List <int>    ys     = new List <int>();
            List <double> zs     = new List <double>();
            Random        random = new Random();

            for (int x = 0; x < 10; ++x)
            {
                for (int y = 0; y < 10; ++y)
                {
                    xs.Add(x);
                    ys.Add(y);
                    zs.Add(1 + random.NextDouble() / 1000);
                }
            }


            Graph3DAnalyzer analyzer = new Graph3DAnalyzer(/*xs.ToArray(), ys.ToArray(), zs.ToArray()*/);
            //process should be used
            Graph3DScript script = new Graph3DScript("x", "y", "z", analyzer, "");

            script.Save();
        }