Ejemplo n.º 1
0
 private bool JudgeFrequency(TDSCDMACarrier bestCell, TDSCDMACarrier tdInterfCell, int sourceChannelIndex, int targetChannelIndex, FrequencyRelationType type)
 {
     float sourceBandWith = bestCell.FreqBand.BandWidth;
     float targetBandWith = tdInterfCell.FreqBand.BandWidth;
     float sourceDLFrequency = bestCell.FreqBand.DLFrequency;
     float targetDLFrequency = tdInterfCell.FreqBand.DLFrequency;
     int multiple = Convert.ToInt32(type);
     bool isSameBandWith = (sourceBandWith == targetBandWith);
     bool isIntegetExcursion = (Math.Abs((sourceDLFrequency + sourceBandWith * sourceChannelIndex) - (targetDLFrequency + targetBandWith * targetChannelIndex)) == sourceBandWith * multiple);
     return isSameBandWith && isIntegetExcursion;
 }
Ejemplo n.º 2
0
 private double CalcInterfByFreqRelation(IACell interfCell, TDSCDMACarrier bestCell, FrequencyRelationType type, double interfFreqBandWith, double bestCellFreqBandWith, double deltaFreq, double rxpower)
 {
     double interf = 0;
     double freqBandRatio = 0;
     double acir = 0;
     if (type == FrequencyRelationType.OutOfInterfFreq)
     {
         acir = CalcAcir(interfCell, bestCell, deltaFreq);
         if (!double.IsNaN(acir))
         {
             interf = UnitTrans.dBto(rxpower - acir);
         }
     }
     else if (type == FrequencyRelationType.InnerOfInterfFreq)
     {
         freqBandRatio = UnitTrans.todB(interfFreqBandWith / bestCellFreqBandWith);
         interf = UnitTrans.dBto(rxpower - freqBandRatio);
     }
     else if (type == FrequencyRelationType.InnerOfBestFreq)
     {
         interf = UnitTrans.dBto(rxpower);
     }
     return interf;
 }
Ejemplo n.º 3
0
 private bool JudgeFrequency(GSMTRX bestServerTRX, GSMTRX gsmInterfTRX, int sourceChannelIndex, int targetChannelIndex, FrequencyRelationType type)
 {
     float sourceBandWith = bestServerTRX.FreqBand.BandWidth;
     float targetBandWith = gsmInterfTRX.FreqBand.BandWidth;
     float sourceDLFrequency = bestServerTRX.FreqBand.DLFrequency;
     float targetDLFrequency = gsmInterfTRX.FreqBand.DLFrequency;
     int multiple = Convert.ToInt32(type);
     bool isSameBandWith = (sourceBandWith == targetBandWith);
     bool isIntegetExcursion = (Math.Abs((sourceDLFrequency + sourceBandWith * sourceChannelIndex) - (targetDLFrequency + targetBandWith * targetChannelIndex)) == sourceBandWith * multiple);
     return isSameBandWith && isIntegetExcursion;
 }