/// <summary>
        /// 提取基线结果
        /// </summary>
        /// <returns></returns>
        public BaseLineNet  GetEstimatedBaselines()
        {
            if (EstimatedBaselines != null)
            {
                return(EstimatedBaselines);
            }

            var baseLineResult = new BaseLineNet();
            var nameBuider     = (NetDoubleDifferPositionParamNameBuilder)this.NameBuilder;
            var baseSiteName   = this.MaterialObj.BaseSiteName;
            var refSite        = this.MaterialObj.BaseEpochInfo;

            foreach (var site in this.MaterialObj)
            {
                var siteName = site.SiteName;
                if (String.Equals(siteName, baseSiteName, StringComparison.CurrentCultureIgnoreCase))
                {
                    continue;
                }

                RmsedXYZ rmsedXYZ = ExtractBaseline(nameBuider, siteName);
                var      cova     = ExtractCovaMatrix(nameBuider, siteName);
                baseLineResult.Add(new EstimatedBaseline(refSite, site, rmsedXYZ, cova, this.ResultMatrix.StdDev)
                {
                    ResultType     = this.ResultMatrix.ResultType,
                    GnssSolverType = this.NameBuilder.Option.GnssSolverType
                });
            }
            EstimatedBaselines = baseLineResult;

            return(baseLineResult);
        }
        /// <summary>
        /// 此将用于输出
        /// </summary>
        /// <returns></returns>
        public override string GetTabTitles()
        {
            BaseLineNet   net = GetEstimatedBaselines();
            StringBuilder sb  = new StringBuilder();

            sb.Append(net.First.GetTabTitles());
            return(sb.ToString());
        }
예제 #3
0
        /// <summary>
        /// 提取网
        /// </summary>
        /// <returns></returns>
        public BaseLineNet GetBaseLineNet()
        {
            BaseLineNet net = new BaseLineNet();

            foreach (var item in BaseLines)
            {
                net.Add(item.Value.Baseline);
            }
            net.Init();
            return(net);
        }
        /// <summary>
        /// 此将用于输出
        /// </summary>
        /// <returns></returns>
        public override string GetTabValues()
        {
            StringBuilder sb = new StringBuilder();

            BaseLineNet net = GetEstimatedBaselines();

            foreach (var item in net)
            {
                sb.AppendLine(item.GetTabValues());
            }
            return(sb.ToString());
        }
예제 #5
0
        /// <summary>
        /// 构建
        /// </summary>
        /// <param name="net"></param>
        /// <returns></returns>
        public EpochLgoAscBaseLine Build(BaseLineNet net)
        {
            EpochLgoAscBaseLine file = new EpochLgoAscBaseLine();

            if (!String.IsNullOrWhiteSpace(net.Name))
            {
                file.Name = net.Name;
            }
            else
            {
                file.Name = "新建文件";
            }
            foreach (var item in net.KeyValues)
            {
                file.BaseLines.Add(item.Key, new LgoAscBaseLine(item.Value));
            }

            return(file);
        }