本文整理汇总了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);
}
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
}
示例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);
}
}
}
示例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];
}
示例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);
}
}
示例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;
}
示例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();
}
示例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);
}
示例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;
}
示例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();
}
示例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;
}
示例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;
}