当前位置: 首页>>代码示例>>C#>>正文


C# ValueMatrixShort类代码示例

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


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

示例10: 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

示例11: 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

示例12: 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

示例13: 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

示例14: 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

示例15: 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


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