• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ValueMatrixShort类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ValueMatrixShort的典型用法代码示例。如果您正苦于以下问题:C# ValueMatrixShort类的具体用法?C# ValueMatrixShort怎么用?C# ValueMatrixShort使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ValueMatrixShort类属于命名空间,在下文中一共展示了ValueMatrixShort类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: FindCoverPoints

 private void FindCoverPoints(ValueMatrixShort onepolygonvalues, Transceiver cell, List<GeoXYPoint> points, LTECellCalcInfo onecellinfo)
 {
     if (onecellinfo.Tanceiver == cell)
     {
         this.FindCellAllCalcPoints(onepolygonvalues, cell, points, onecellinfo);
     }
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:LTECoverageInfo.cs


示例2: MyTestInitialize

        [TestInitialize]  //初始化测试用例
        public void MyTestInitialize()
        {
            m_Index = 0;
            m_Name = "GSMCodingScheme";
            m_Context = new Context();
            m_Case = new CodingSchemeCase();

            IACell cell = Mock.CreatGsmCell();
            group = Mock.MockGSMPredicGroup();
            TrueFalseMatrix tFMatrix = new TrueFalseMatrix(4, 4, 0, 200, 50, true);

            LinkLossAssist.Init();

            IProjectManager projectMgr = ServiceHelper.Lookup<MockIProjectManager>(ProjectSingleton.CurrentProject.AppContext);
            string absolutePath1 = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, group.Name, group.Region.Name, GSMPredictionStudyType.BestServer.ToString());
            string relativePath1 = ResultFilePath.CreateRelativePath(group.Name, group.Region.Name, GSMPredictionStudyType.BestServer.ToString());
            ShortResultStruct srs1 = ShortResultStruct.DefaultMax;
            gsmBestServerID = ValueMatrixAssist.GenerateByTrueFalseMatrix(tFMatrix, absolutePath1, relativePath1, srs1);
            gsmBestServerID[0] = cell.ID;

            string absolutePath2 = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, group.Name, group.Region.Name, GSMPredictionStudyType.DLServiceCIR.ToString());
            string relativePath2 = ResultFilePath.CreateRelativePath(group.Name, group.Region.Name, GSMPredictionStudyType.DLServiceCIR.ToString());
            ShortResultStruct srs2 = ShortResultStruct.DefaultMin;
            ValueMatrixShort gsmDLServiceCIR = ValueMatrixAssist.GenerateByTrueFalseMatrix(tFMatrix, absolutePath2, relativePath2, srs2);
            gsmDLServiceCIR[0] = 26 * 100;

                        
            //ITrafficForApplication trafficForApplication=new MockITrafficForApplication();

            m_Context.Add(ContextKeys.Group, group);
            m_Context.Add(ContextKeys.TFMatrix, tFMatrix);
            m_Context.Add(ContextKeys.ApplicationContext, ProjectSingleton.CurrentProject.AppContext);
            m_Context.Add(ContextKeys.GSMBestServerID, gsmBestServerID);
            m_Context.Add(ContextKeys.GSMDLServiceCIR, gsmDLServiceCIR);
        }
开发者ID:xiaoyj,项目名称:Space,代码行数:36,代码来源:CodingSchemeCaseFixture.cs


示例3: GenerateValueMatrixShortNoInitial

 public static ValueMatrixShort GenerateValueMatrixShortNoInitial(TrueFalseMatrix tfMatrix, string filepath, string relativePath)
 {
     ValueMatrixShort shortMatrix = new ValueMatrixShort(filepath, relativePath, tfMatrix.RowCount, tfMatrix.ColCount);
     m_ShortMatrix = shortMatrix;
     shortMatrix.SetParam(tfMatrix.NorthWestX, tfMatrix.NorthWestY, tfMatrix.Resolution);
     shortMatrix.SetValue(-32768, -32768, -32768);
     return shortMatrix;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:8,代码来源:ValueMatrixHandle.cs


示例4: GenerateValueMatrixShort

 public static ValueMatrixShort GenerateValueMatrixShort(TrueFalseMatrix tfMatrix, string filepath, string relativePath)
 {
     ValueMatrixShort vms = new ValueMatrixShort(filepath, relativePath, tfMatrix.RowCount, tfMatrix.ColCount);
     m_ShortMatrix = vms;
     vms.SetParam(tfMatrix.NorthWestX, tfMatrix.NorthWestY, tfMatrix.Resolution);
     vms.SetValue(-32768, -32768, -32768);
     InitialValueMatrix(tfMatrix, -32768, -32768, vms);
     return vms;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:9,代码来源:ValueMatrixHandle.cs


示例5: InitialValueMatrix

 private static void InitialValueMatrix(TrueFalseMatrix tfMatrix, short notCalcValue, short defaultValue, ValueMatrixShort vms)
 {
     bool flag = false;
     for (int i = 0; i < vms.TotalCount; i++)
     {
         flag = tfMatrix[i];
         vms[i] = notCalcValue;
     }
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:9,代码来源:ValueMatrixHandle.cs


示例6: FindCellAllCalcPoints

 private void FindCellAllCalcPoints(ValueMatrixShort onepolygonvalues, UNet.NE.Interface.Transceiver cell, List<GeoXYPoint> points, LTECellCalcInfo onecellinfo)
 {
     for (int i = onecellinfo.StartPoint.Y; i < (onecellinfo.EndPoint.Y + 1); i++)
     {
         for (int j = onecellinfo.StartPoint.X; j < (onecellinfo.EndPoint.X + 1); j++)
         {
             this.ValidatePointCover(onepolygonvalues, cell, points, i, j);
         }
     }
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:10,代码来源:LTECoverageInfo.cs


示例7: GetDataFromContext

 /// <summary>
 /// 从Context中获取本case所需的指标
 /// </summary>
 /// <param name="context"></param>
 private void GetDataFromContext(Context context)
 {
     m_appContext = (IBaseService)context[ContextKeys.ApplicationContext];
     m_ProjectManager = ServiceHelper.Lookup<IProjectManager>(m_appContext);
     m_tFMatrix = (TrueFalseMatrix)context[ContextKeys.TFMatrix];
     m_predictionGroup = (TDPredictionGroup)context[ContextKeys.Group];
     m_procGain = TDPredictionCommonCalc.GetProcGain(m_predictionGroup);
     m_ULDCHRSCPMatrix = (ValueMatrixShort)context[ContextKeys.ULDCHRSCP];
     m_BestServerCellIDMatrix = (ValueMatrixShort)context[ContextKeys.TDBestServerCellID];
     m_cells = (List<IACell>)context[ContextKeys.CellList];  
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:15,代码来源:ULDCHSINRCase.cs


示例8: GetColorForCell

        /// <summary>
        /// 为小区的BestServer区域涂色
        /// </summary>
        /// <param name="study"></param>
        /// <param name="bestServerCellID"></param>
        public void GetColorForCell(IStudy study, ValueMatrixShort bestServerCellID,List<IACell> cellList)
        {
            ((ShortDiscreteStudy)study).StyleList.Clear();
            List<Color> colors = this.GenGeoDisplayColor();

            foreach (IACell cell in cellList)
            {
                string cellName = cell.Name;
                GeoDiscreteSytle style = this.AllocateColorToCell(colors, cell.ID, cellName);
                ((ShortDiscreteStudy)study).StyleList.Add(style);
            }
        }
开发者ID:xiaoyj,项目名称:Space,代码行数:17,代码来源:GetColorForDiscreteStudy.cs


示例9: GetValueFromContext

 private void GetValueFromContext(Context context)
 {
     m_tdPreGroup = (TDPredictionGroup)context[ContextKeys.Group];
     m_tFMatrix = (TrueFalseMatrix)context[ContextKeys.TFMatrix];
     m_AppContext = (IBaseService)context[ContextKeys.ApplicationContext];
     m_Name = m_tdPreGroup.Name;
     TrafficAdaptorAssist trafficAdaptor = TrafficAdaptorAssist.Instance;
     m_BearerList = trafficAdaptor.TDHSUPABearerList;
     m_BestServerCellIDMatrix = (ValueMatrixShort)context[ContextKeys.TDBestServerCellID];
     m_cells = (List<IACell>)context[ContextKeys.CellList];
     m_ProjectManager = ServiceHelper.Lookup<IProjectManager>(m_AppContext);
     m_tdTerminal = (TDTerminal)m_tdPreGroup.TrafficTerminal.GetNetWorkTerminal(NetWorkType.TDSCDMA);
     m_HSUPACIMatrix = (ValueMatrixShort)context[ContextKeys.ULDCHCIR];
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:14,代码来源:HSUPAPeakThroughputCase.cs


示例10: getIsDivisionShort

 private string getIsDivisionShort(PredictionStudy study, ValueMatrixShort matrixShort, int index, PredictionGroup group)
 {
     string nameAndStudy = null;
     if ((study.StudyType & this.studyTypeNotdivision) == study.StudyType)
     {
         if (study.StudyType == PredictionStudyType.Best_Server)
         {
             return (this.getCellname(group, matrixShort[index]) + this.blank_enter);
         }
         if ((study.StudyType == PredictionStudyType.PUSCH_MCS) || (study.StudyType == PredictionStudyType.PDSCH_MCS))
         {
             int mscid = matrixShort[index];
             if (mscid == 0)
             {
                 return nameAndStudy;
             }
             return this.GetMscCodingRate(study, group, nameAndStudy, mscid);
         }
         return (((float) matrixShort[index]) + this.blank_enter);
     }
     return ((((float) matrixShort[index]) / 100f) + this.blank_enter);
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:22,代码来源:CalculateTargetValue.cs


示例11: InitialProperty

 public void InitialProperty(int blockIndex)
 {
     this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix;
     this.m_BestServerRSRP = this.m_DataManager.BestServerRSRP.MatrixBlockArr[blockIndex].ShortMatrix;
     this.m_DLBestServerLinkLoss = this.m_DataManager.DLBestServerLinkLoss.MatrixBlockArr[blockIndex].IntMatrix;
     this.m_NeedCalRsrq = this.m_DataManager.NeedCalRSRQ;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:DLRSSIResult.cs


示例12: SetMatrixInCase

 public void SetMatrixInCase(int blockIndex)
 {
     this.m_BestServerCellID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix;
     this.m_DLSameInterfere = this.m_DataManager.DLSameInterfere.MatrixBlockArr[blockIndex].IntMatrix;
     this.m_Tranceiverlist = this.m_DataManager.BlockCellInfoArr[blockIndex].CalCellColl.GetTranceiverList();
     this.m_Tranceiverlist.Sort();
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:ShiftingInterfereCase.cs


示例13: MyTestInitialize

        public void MyTestInitialize()
        {
            m_Index = 0;
            m_Name = "HSPDSCHRSCP";
            m_Case = new HSPDSCHRSCPCase();
            m_Context = new Context();

            tfMatrix = new TrueFalseMatrix(4, 4, 0.0, 200, 50, true);
            tdGroup = MockGroupAndCell.MockTDPredicGroup();
            cell = MockGroupAndCell.CreateTDCell();

            InitTerminal(tdGroup);

            LinkLossAssist.Init();
            IProjectManager projectMgr = ServiceHelper.Lookup<IProjectManager>(ProjectSingleton.CurrentProject.AppContext);
            string path = projectMgr.CurrentProjectLossPath;
            string absolutePath = ResultFilePath.CreateFilePath(path, tdGroup.Name, tdGroup.Region.Name, TDPredictionStudyType.Best_Server.ToString());
            string relativePath = ResultFilePath.CreateRelativePath(tdGroup.Name, tdGroup.Region.Name, TDPredictionStudyType.Best_Server.ToString());
            BestServerCellID = ValueMatrixAssist.GenerateByTrueFalseMatrix(tfMatrix, absolutePath, relativePath, ShortResultStruct.DefaultMax);
            BestServerCellID[0] = cell.ID;

            m_Context.Add(ContextKeys.CurrentCalcCell, cell);
            m_Context.Add(ContextKeys.Group, tdGroup);
            m_Context.Add(ContextKeys.TDBestServerCellID, BestServerCellID);
            m_Context.Add(ContextKeys.TFMatrix, tfMatrix);
            m_Context.Add(ContextKeys.CellList, InitCellList(cell));
            m_Context.Add(ContextKeys.ApplicationContext, ProjectSingleton.CurrentProject.AppContext);
        }
开发者ID:xiaoyj,项目名称:Space,代码行数:28,代码来源:HSPDSCHRSCPCaseTest.cs


示例14: InitialProperty

 public void InitialProperty(int blockIndex)
 {
     this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix;
     this.m_BestServerRSRP = this.m_DataManager.BestServerRSRP.MatrixBlockArr[blockIndex].ShortMatrix;
     this.m_ULBestServerLinkLoss = this.m_DataManager.ULBestServerLinkLoss.MatrixBlockArr[blockIndex].IntMatrix;
     this.m_DLInterfMatrix = this.m_DataManager.InterferenceForUL.MatrixBlockArr[blockIndex].IntMatrix;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:PRACH_SINRCase.cs


示例15: SetMatrixInCase

 public void SetMatrixInCase(int blockIndex)
 {
     this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix;
     this.m_InterferenceForUL = this.m_DataManager.InterferenceForUL.MatrixBlockArr[blockIndex].IntMatrix;
     this.m_Tranceiverlist = this.m_DataManager.BlockTransceiverExCollArr[blockIndex].TransceiverExColl.GetTranceiverList();
     //this.m_Tranceiverlist.Sort();
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:InterferenceCaseForUL.cs


示例16: SetMatrixInCase

        public void SetMatrixInCase(int index)
        {
            m_LTEBestServerID = m_DataManager.LTEBestServerID.MatrixBlockArr[index].ShortMatrix;
            //this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[index].ShortMatrix;
            this.m_InterfereForRPDCCH = this.m_DataManager.InterfereForRPDCCH.MatrixBlockArr[index].IntMatrix;

        }
开发者ID:xiaoyj,项目名称:Space,代码行数:7,代码来源:InterferenceCaseForRPDCCH.cs


示例17: InitialProperty

 public void InitialProperty(int blockIndex)
 {
     this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix;
     this.m_BestServerRSRPMatrix = this.m_DataManager.BestServerRSRP.MatrixBlockArr[blockIndex].ShortMatrix;
     this.m_ULBestServerLinkLoss = this.m_DataManager.ULBestServerLinkLoss.MatrixBlockArr[blockIndex].IntMatrix;
     this.m_ULTxSensitivity = this.m_DataManager.Group.ULTxSensitivity;
     this.m_ULMaxSensitivity = this.m_DataManager.Group.ULMaxSensitivity;
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:8,代码来源:UL_RSRPCase.cs


示例18: InitialProperty

 public void InitialProperty(int blockIndex)
 {
     this.m_BestServerCarrierID = this.m_DataManager.BestServerCellID.MatrixBlockArr[blockIndex].ShortMatrix;
     if (this.m_RsShifting)
     {
         this.m_ShiftingInterfOfDLPBCHSinr = this.m_DataManager.ShfitingInterfOfDlPBCHSinr.MatrixBlockArr[blockIndex].IntMatrix;
     }
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:8,代码来源:PBCH_SINRCase.cs


示例19: MyTestInitialize

        public void MyTestInitialize()
        {
            m_Index = 0;
            m_Name = "HandOverArea";
            m_Context = new Huawei.UNet.Prediction.CalculateInterface.Context();
            m_Case =new HandOverAreaCase() ;
            cellList = new List<IACell>();
            TrueFalseMatrix matrix = new TrueFalseMatrix(4, 4, 0.0, 200, 50, true);
            LinkLossAssist.Init();

            UMTSPredictionGroup group = new UMTSPredictionGroup();
            group.HandoverAreaThreshold = 3;
            group.Region = MockRegion.CreateRegion();
            group.Name = "UMTSPredictionGroup";
            group.UIParam.HOGate = 5f;
            UnionCsService service = new UnionCsService();
            Service umtsService = new UMTSService();
            service.CSServiceDic.Add(NetWorkType.UMTS, umtsService);
            group.CsService = service;
            group.TrafficTerminal = new Terminal();
            group.TrafficTerminal.NetTerminalList.Add(new NetworkTerminal());

            #region 文件存储
            IProjectManager projectMgr = ServiceHelper.Lookup<MockIProjectManager>(ProjectSingleton.CurrentProject.AppContext);
            string absolutePathID = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, group.Name, group.Region.Name, ContextKeys.UmtsBestServerCellID);
            string relativePathID = ResultFilePath.CreateRelativePath(group.Name, group.Region.Name, ContextKeys.UmtsBestServerCellID);
            string absolutePathRSCP = ResultFilePath.CreateFilePath(projectMgr.CurrentProjectLossPath, group.Name, group.Region.Name, ContextKeys.UmtsBestServerRSCP);
            string relativePathRSCP = ResultFilePath.CreateRelativePath(group.Name, group.Region.Name, ContextKeys.UmtsBestServerRSCP);
            ShortResultStruct srsID = ShortResultStruct.DefaultMin;
            ShortResultStruct srsRSCP = ShortResultStruct.DefaultMax;
            m_BestServerID = ValueMatrixAssist.GenerateByTrueFalseMatrix(matrix, absolutePathID, relativePathID, srsID);
            m_BestServerRSCP = ValueMatrixAssist.GenerateByTrueFalseMatrix(matrix, absolutePathRSCP, relativePathRSCP, srsRSCP);
            #endregion

            m_BestServerID[0] = 0;
            
            for (int i = 0; i < 2; i++)
            {
                IACell cell = new UMTSCell();
                cellList.Add(cell);
            }
            double[] x = new double[2] { 50, 100 };
            double[] y = new double[2] { 50, 100 };
            MockCellList.CreateCellList(cellList, x, y);

            #region 把数据加入Context
            m_Context.Add(ContextKeys.Group, group);
            m_Context.Add(ContextKeys.TFMatrix, matrix);
            m_Context.Add(ContextKeys.ApplicationContext, ProjectSingleton.CurrentProject.AppContext);
            m_Context.Add(ContextKeys.UmtsBestServerCellID, m_BestServerID);
            m_Context.Add(ContextKeys.UmtsBestServerRSCP, m_BestServerRSCP);
            m_Context.Add(ContextKeys.CellList, cellList);
            #endregion

            m_Case.Name = m_Name;
            m_Case.InitialCase(m_Context);
            
        }
开发者ID:xiaoyj,项目名称:Space,代码行数:58,代码来源:HandOverAreaCaseFixture.cs


示例20: CreateContext

 private void CreateContext()
 {
     context = new Context();
     matrix = GenerateTestShortMatrix.GetShortMatrix();
     context.Add(ContextKeys.UmtsEPDSCHEcNt, matrix);
     List<IACell> cellList = new List<IACell>();
     MockUMTSCellList.InitCellList(cellList);
     context.Add(ContextKeys.CellList, cellList);
 }
开发者ID:xiaoyj,项目名称:Space,代码行数:9,代码来源:EPDSCHEcNtStudyEditorFixture.cs



注:本文中的ValueMatrixShort类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ValueObject类代码示例发布时间:2022-05-24
下一篇:
C# ValueItem类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap