예제 #1
0
        override protected IMethod updateMethod()
        {
            try
            {
                double[] creds = getCredibilities();
                this.W = new double[this.numberInterval + 1];
                creds.CopyTo(this.W, 1);
                this.Fx = ElicitationHelper.getCumulative(this.W);

                this.times.Add(timeConsuption / 1000);  //Armazenar nas listas os valores do tempo consumido e das respostas
                this.InitializeComponent_DistributionResults(ElicitationHelper.buildStatistics(this.x, this.Fx, this.numberInterval, this.p.min, this.p.max));
            } catch (Exception exc) {
                ifPrincipal.DisplayMessage(exc.StackTrace, true);
            }
            return(null);
        }
예제 #2
0
        public void initMethod2()
        {
            int nPoints = 2 * this.k - 2;

            this.y = new double[nPoints];

            this.Fx = ElicitationHelper.getCumulative(this.W);//cumulatives

            label_texts = new String[this.numberInterval];
            this.setQuestionAlternatives();
            for (int i = 0; i < this.numberInterval; i++)
            {
                label_texts[i] = ((Alternative)this.question.alternatives[i]).evento;
            }
            this.lista = ElicitationHelper.buildStatistics(this.x, Fx, this.numberInterval, this.p.min, this.p.max);

            configInputControls2(label_texts);

            this.InitializeComponent_DistributionResults(this.lista);
        }