Ejemplo n.º 1
0
        public void FieldFiller(INCCAnalysisParams.CurveEquationVals cev)
        {
            LowerMassLimitTextBox.Value = cev.lower_mass_limit;
            UpperMassLimitTextBox.Value = cev.upper_mass_limit;
            LowerAlphaLimitTextBox.Value = known_alpha.lower_corr_factor_limit;
            UpperAlphaLimitTextBox.Value = known_alpha.upper_corr_factor_limit;
            ConventionalATextBox.Value = cev.a;
            ConventionalBTextBox.Value = cev.b;
            VarianceATextBox.Value = cev.var_a;
            VarianceBTextBox.Value = cev.var_b;

            CovarianceABTextBox.Value = cev.covar(Coeff.a, Coeff.b);
            
            SigmaXTextBox.Value = cev.sigma_x;
        }
Ejemplo n.º 2
0
 public void CalibrationFieldFiller(INCCAnalysisParams.CurveEquationVals cev)
 {
     LowerMassLimitTextBox.Text = cev.lower_mass_limit.ToString("N3");
     UpperMassLimitTextBox.Text = cev.upper_mass_limit.ToString("N3");
     ATextBox.Text = cev.a.ToString("E6");
     BTextBox.Text = cev.b.ToString("E6");
     CTextBox.Text = cev.c.ToString("E6");
     DTextBox.Text = cev.d.ToString("E6");
     VarianceATextBox.Text = cev.var_a.ToString("E6");
     VarianceBTextBox.Text = cev.var_b.ToString("E6");
     VarianceCTextBox.Text = cev.var_c.ToString("E6");
     VarianceDTextBox.Text = cev.var_d.ToString("E6");
     CovarianceABTextBox.Text = cev.covar(Coeff.a, Coeff.b).ToString("E6");
     CovarianceACTextBox.Text = cev.covar(Coeff.a, Coeff.c).ToString("E6");
     CovarianceADTextBox.Text = cev.covar(Coeff.a, Coeff.d).ToString("E6");
     CovarianceBCTextBox.Text = cev.covar(Coeff.b, Coeff.c).ToString("E6");
     CovarianceBDTextBox.Text = cev.covar(Coeff.b, Coeff.d).ToString("E6");
     CovarianceCDTextBox.Text = cev.covar(Coeff.c, Coeff.d).ToString("E6");
     SigmaXTextBox.Text = cev.sigma_x.ToString("E6");
 }
Ejemplo n.º 3
0
 void CopyCoefficients(INCCAnalysisParams.CurveEquationVals src, INCCAnalysisParams.CurveEquationVals tgt)
 {
     tgt.a = src.a;
     tgt.b = src.b;
     tgt.c = src.c;
     tgt.d = src.d;
     tgt.var_a = src.var_a;
     tgt.var_b = src.var_b;
     tgt.var_c = src.var_c;
     tgt.var_d = src.var_d;
     tgt.setcovar(Coeff.a, Coeff.b, src.covar(Coeff.a, Coeff.b));
     tgt.setcovar(Coeff.a, Coeff.c, src.covar(Coeff.a, Coeff.c));
     tgt.setcovar(Coeff.a, Coeff.d, src.covar(Coeff.a, Coeff.d));
     tgt.setcovar(Coeff.b, Coeff.c, src.covar(Coeff.b, Coeff.c));
     tgt.setcovar(Coeff.b, Coeff.d, src.covar(Coeff.b, Coeff.d));
     tgt.setcovar(Coeff.c, Coeff.d, src.covar(Coeff.c, Coeff.d));
 }