Example #1
0
        private void button_Robust_Click(object sender, EventArgs e)
        {
            string strKnown_Points = this.textBox_knownpoint.Text;

            if (strKnown_Points == null)
            {
                throw new Exception("请输入固定点号!");
            }
            string[] Known_Points = strKnown_Points.Split(';');

            string[] WS_FilePath        = this.textBox_WeekSolutionFilepath.Lines;
            string[] DS_FilePath        = this.textBox_DailySolutionFilepath.Lines;
            string[] Priori_WS_FilePath = this.textBox_PrioriWeekSolutionFilePath.Lines;

            double k0  = double.Parse(this.textBox_k0.Text);
            double k1  = double.Parse(this.textBox_k1.Text);
            double eps = double.Parse(this.textBox_eps.Text);

            if (k0 > k1 && k0 < 0 && eps <= 0)
            {
                throw new Exception("抗差条件不足!");
            }

            //加入粗差率,即是在多少基线里面加入粗差
            double rate = 0.01;
            int    time = DS_FilePath.Length;

            SinexNetWorkAdjustmentLLY sinex_network_adjustment = new SinexNetWorkAdjustmentLLY(WS_FilePath, DS_FilePath, Priori_WS_FilePath, Known_Points, k0, k1, eps, rate, time);
        }
Example #2
0
        /// <summary>
        /// 贝叶斯估计
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button_Bayes_Click(object sender, EventArgs e)
        {
            string strKnown_Points = this.textBox_knownpoint.Text;

            if (strKnown_Points == null)
            {
                throw new Exception("请输入固定点号!");
            }

            string[] Known_Points       = strKnown_Points.Split(';');
            string[] WS_FilePath        = this.textBox_WeekSolutionFilepath.Lines;
            string[] DS_FilePath        = this.textBox_DailySolutionFilepath.Lines;
            string[] Priori_WS_FilePath = this.textBox_PrioriWeekSolutionFilePath.Lines;

            SinexNetWorkAdjustmentLLY sinex_network_adjustment = new SinexNetWorkAdjustmentLLY(WS_FilePath, DS_FilePath, Priori_WS_FilePath, Known_Points);
        }
Example #3
0
        /// <summary>
        /// 最小二乘平差
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button_LSAdjustment_Click(object sender, EventArgs e)
        {
            string strKnown_Points = this.textBox_knownpoint.Text;

            if (strKnown_Points == null)
            {
                throw new Exception("请输入固定点号!");
            }

            string[] Known_Points = strKnown_Points.Split(';');//分隔字符
            string[] WS_FilePath  = this.textBox_WeekSolutionFilepath.Lines;
            string[] DS_FilePath  = this.textBox_DailySolutionFilepath.Lines;
            //double k0 = double.Parse(this.textBox_k0.Text);
            //double k1 = double.Parse(this.textBox_k1.Text);
            //double eps = double.Parse(this.textBox_eps.Text);

            //最小二乘平差
            //输入文件:日解文件
            //平差类型:最小二乘平差
            //输出:跟踪站平差后的坐标
            SinexNetWorkAdjustmentLLY sinex_network_adjustment = new SinexNetWorkAdjustmentLLY(WS_FilePath, DS_FilePath, Known_Points);
        }