【原创】C#写的水准网平差程序

Matrix类详见http://hi.baidu.com/aragon2/blog/item/1edbba124ab4beecc2ce796e.html?timeStamp=1311046817866

一个基本的水准平差控制台程序。

   1:  using System;
   2:  using System.Collections.Generic;
   3:  using System.Linq;
   4:  using System.Text;
   5:  using System.IO;
   6:   
   7:  namespace Adjustment
   8:  {
   
   9:      public class LPointClass
  10:      {
   
  11:          public string PID { get; set; }
  12:          public double H { get; set; }
  13:          public bool IsControlP { get; set; }
  14:      }
  15:   
  16:      public class LineClass
  17:      {
   
  18:          public int CZCount { get; set; }
  19:          public LPointClass SP { get; set; }
  20:          public LPointClass EP { get; set; }
  21:          public double dH { get; set; }
  22:          public double Distance { get; set; }
  23:      }
  24:   
  25:      public class AdjustedPart
  26:      {
   
  27:          List<LPointClass> AdjustedPoints = new List<LPointClass>();
  28:          public Matrix B { get; set; }
  29:          public Matrix Q { get; set; }
  30:      }
  31:   
  32:      public class AdjustClass
  33:      {
   
  34:          public Matrix B { get; set; }
  35:          public Matrix P { get; set; }
  36:          public Matrix l { get; set; }
  37:          public Matrix Q { get; set; }
  38:          public Matrix x { get; set; }
  39:          public Matrix V { get; set; }
  40:   
  41:          public void LevelAdjust(List<LineClass> CurrentSegments, List<LPointClass> CurrentPoints, List<LPointClass> ControlPoints)
  42:          {
   
  43:              int n = CurrentSegments.Count;
  44:              int t = CurrentPoints.Count - ControlPoints.Count;
  45:              B = new Matrix(n, t);
  • 3
    点赞
  • 24
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值