コード例 #1
0
 private void AssertBasicParameters(CdrTaRecord details, CdrRtdRecord record)
 {
     Assert.AreEqual(details.CellId, record.CellId);
     Assert.AreEqual(details.SectorId, record.SectorId);
     Assert.AreEqual(details.TaMax, record.Rtd, 1E-6);
     Assert.AreEqual(details.TaMin, record.Rtd, 1E-6);
     Assert.AreEqual(details.TaAverage, record.Rtd, 1E-6);
 }
コード例 #2
0
 protected abstract void AssertDistributionParameters(CdrTaRecord details, CdrRtdRecord record);
コード例 #3
0
 protected override void AssertDistributionParameters(CdrTaRecord details, CdrRtdRecord record)
 {
     Assert.AreEqual(details.TaSum, record.Rtd, 1E-6);
     if (InterferenceStat.IsInnerBound(record.Rtd))
     {
         Assert.AreEqual(details.TaInnerIntervalNum, 1);
         Assert.AreEqual(details.TaOuterIntervalNum, 0);
     }
     else
     {
         Assert.AreEqual(details.TaInnerIntervalNum, 0);
         Assert.AreEqual(details.TaOuterIntervalNum, 1);
     }
 }
コード例 #4
0
 protected override void AssertDistributionParameters(CdrTaRecord details, CdrRtdRecord record)
 {
     if (record.Rtd > details.Threshold)
     {
         Assert.AreEqual(
             InterferenceStat.IsInnerBound(record.Rtd)
                 ? details.TaOuterIntervalExcessNum
                 : details.TaInnerIntervalExcessNum, 0);
         Assert.AreEqual(
             InterferenceStat.IsInnerBound(record.Rtd)
                 ? details.TaInnerIntervalExcessNum
                 : details.TaOuterIntervalExcessNum, 1);
     }
     else
     {
         Assert.AreEqual(details.TaOuterIntervalExcessNum, 0);
         Assert.AreEqual(details.TaInnerIntervalExcessNum, 0);
     }
 }
コード例 #5
0
 protected ImportCdrTaRecordsService(List<CdrTaRecord> details, CdrRtdRecord record)
 {
     _details = details;
     _record = record;
     _detail = details.FirstOrDefault(x => x.CellId == record.CellId && x.SectorId == record.SectorId);
 }
コード例 #6
0
 protected override void ImportWhenDetailIsNull()
 {
     _detail = new CdrTaRecord
     {
         CellId = _record.CellId,
         SectorId = _record.SectorId
     };
     _details.Add(_detail);
 }