コード例 #1
0
ファイル: CalculateTargetValue.cs プロジェクト: xiaoyj/Space
 private bool ValidateIntCollection(double x, double y, ref GeoXYPoint gPoint, ValueMatrixIntCollection valueMatrixIntCollection)
 {
     if (((valueMatrixIntCollection != null) && (valueMatrixIntCollection.Values != null)) && (valueMatrixIntCollection.Values.Count > 0))
     {
         gPoint = this.getBinXy(x, y, valueMatrixIntCollection.Values[0].Resolution);
         if (this.IsInRectangle(gPoint, valueMatrixIntCollection.Values[0].Resolution, valueMatrixIntCollection.Values[0].NorthwestY, valueMatrixIntCollection.Values[0].NorthwestX, valueMatrixIntCollection.Values[0].ColumnsCount, valueMatrixIntCollection.Values[0].RowsCount))
         {
             return true;
         }
     }
     return false;
 }
コード例 #2
0
ファイル: CalculateTargetValue.cs プロジェクト: xiaoyj/Space
 private bool Validate(double x, double y, ref GeoXYPoint gPoint, ValueMatrixIntCollection valueMatrixIntCollection, ValueMatrixShortCollection valueMatrixShortCollection)
 {
     return (this.ValidateIntCollection(x, y, ref gPoint, valueMatrixIntCollection) || this.ValidateShortCollection(x, y, ref gPoint, valueMatrixShortCollection));
 }
コード例 #3
0
 private void ThroughputShow(PredictionGroup pg, PredictionStudy ps)
 {
     this.ClearDiscreteMapLayer(ps);
     string savePath = this.GetSavePath(ps);
     this.m_ValueCollectionInt = ps.StudyValueMatrix as ValueMatrixIntCollection;
     this.m_ValueCollectionInt.Open(this.m_SubSysInterface.ProjectManager);
     Dictionary<short, Color> discreteColorDict = new Dictionary<short, Color>();
     this.m_DefaultColor = Color.FromArgb(0, Color.White);
     List<MaxMinValue> maxMinValueList = this.GenerateColorDict(ps, discreteColorDict);
     foreach (ValueMatrixInt num in this.m_ValueCollectionInt.Values)
     {
         ValueMatrixShort throughputValueMatrix = new ValueMatrixShort(savePath, string.Empty, num.RowsCount, num.ColumnsCount);
         throughputValueMatrix.SetParam(num.NorthwestX, num.NorthwestY, (float) num.Resolution);
         throughputValueMatrix.SetValue(num.InvalidValue, num.NotCalcValue, num.DefaultValue);
         this.GenerateValueMatrixForGeo(maxMinValueList, num, throughputValueMatrix);
         string str2 = Enum.GetName(typeof(PredictionStudyType), ps.StudyType).Replace('_', ' ');
         GeoDiscreteEventArgs args = new GeoDiscreteEventArgs(throughputValueMatrix, discreteColorDict, this.m_DefaultColor);
         args.m_PolygonRegion = this.m_PredictionGroup.Region;
         int layerId = this.m_SubSysInterface.AnalyDispEvent.AnalyGeoDiscreteLayerMsgChanged(args);
         ps.StudyLegend.MapLever = layerId;
         this.UpdateTreeNodeTag(pg, ps, layerId);
         throughputValueMatrix.Close(false);
     }
     this.m_ValueCollectionInt.Close(false);
 }
コード例 #4
0
ファイル: CaseDataManager.cs プロジェクト: xiaoyj/Space
 private void InitialValueCollections()
 {
     this.m_OverlappingZoness = new ValueMatrixShortCollection();
     this.m_BestServerRSRPs = new ValueMatrixShortCollection();
     this.m_SymbolRSRPs = new ValueMatrixShortCollection();
     this.m_DLRSSIs = new ValueMatrixShortCollection();
     this.m_DLRSSINRValues = new ValueMatrixShortCollection();
     this.m_GeometryValues = new ValueMatrixShortCollection();
     this.m_PDSCHSINRValues = new ValueMatrixShortCollection();
     this.m_PUSCHSINRValues = new ValueMatrixShortCollection();
     this.m_HandOvers = new ValueMatrixShortCollection();
     this.m_BestServerCellIDs = new ValueMatrixShortCollection();
     this.m_BestServerCarrierIDs = new ValueMatrixShortCollection();
     this.m_PDSCHMCSValues = new ValueMatrixShortCollection();
     this.m_PUSCHMCSValues = new ValueMatrixShortCollection();
     this.m_DLPEAKValues = new ValueMatrixIntCollection();
     this.m_ULPEAKValues = new ValueMatrixIntCollection();
     this.m_DLAPPLICATIONPEAKValues = new ValueMatrixIntCollection();
     this.m_ULAPPLICATIONPEAKValues = new ValueMatrixIntCollection();
     this.m_DL_PBCH_RPValues = new ValueMatrixShortCollection();
     this.m_PBCH_SINRValues = new ValueMatrixShortCollection();
     this.m_DL_SCH_RPValues = new ValueMatrixShortCollection();
     this.m_SCH_SINRValues = new ValueMatrixShortCollection();
     this.m_ULRSRPValues = new ValueMatrixShortCollection();
     this.m_DLRSRQValues = new ValueMatrixShortCollection();
     this.m_DL_PDCCH_LevelValues = new ValueMatrixShortCollection();
     this.m_PDCCH_SINRValues = new ValueMatrixShortCollection();
     this.m_DL_PCFICH_LevelValues = new ValueMatrixShortCollection();
     this.m_PCFICH_SINRValues = new ValueMatrixShortCollection();
     this.m_DL_PHICH_LevelValues = new ValueMatrixShortCollection();
     this.m_PHICH_SINRValues = new ValueMatrixShortCollection();
     this.m_PUCCH_LevelValues = new ValueMatrixShortCollection();
     this.m_PUCCH_SINRValues = new ValueMatrixShortCollection();
     this.m_PRACH_LevelValues = new ValueMatrixShortCollection();
     this.m_PRACH_SINRValues = new ValueMatrixShortCollection();
 }
コード例 #5
0
 private void GetIntCountDic(ValueMatrixIntCollection valuematrix, ref Dictionary<MaxMinValue, int> intCountDic, List<MaxMinValue> MaxMinList, StatisticType statType, GeoPolygonRegion polygonRegion)
 {
     if (this.m_NeedSolveFloatMaxShortMin[0])
     {
         this.m_ActualMinValue = 0x7fffffff;
     }
     if (this.m_NeedSolveFloatMaxShortMin[1])
     {
         this.m_ActualMaxValue = -32768f;
     }
     this.m_ValidPoint = 0.0;
     foreach (int num in valuematrix.GetValidPointsValue(polygonRegion))
     {
         if (num != -32768)
         {
             if (num > this.m_ActualMaxValue)
             {
                 this.m_ActualMaxValue = num;
             }
             if (num < this.m_ActualMinValue)
             {
                 this.m_ActualMinValue = num;
             }
             double powervalue = num;
             this.GetGeneralCountDic(powervalue, ref intCountDic, MaxMinList, statType);
         }
     }
 }