예제 #1
0
 public ECGCycleDescription(ECGCycleDescription marshelledData, long currentTimestamp, double samplingRate, long currentIndex, int shiftBS, int shiftIC)
 {
     CurrentTimestamp              = currentTimestamp;
     StartOfQRSAmplitude           = marshelledData.StartOfQRSAmplitude;
     EndOfQRSAmplitude             = marshelledData.EndOfQRSAmplitude;
     RPeakAmplitude                = marshelledData.RPeakAmplitude;
     StartOfPWaveAmplitude         = marshelledData.StartOfPWaveAmplitude;
     EndOfPWaveAmplitude           = marshelledData.EndOfPWaveAmplitude;
     PPeakAmplitude                = marshelledData.PPeakAmplitude;
     StartOfTWaveAmplitude         = marshelledData.StartOfTWaveAmplitude;
     EndOfTWaveAmplitude           = 0;
     TPeakAmplitude                = marshelledData.TPeakAmplitude;
     IsAPeakExist                  = marshelledData.IsAPeakExist;
     APeakAmplitude                = marshelledData.APeakAmplitude;
     IsVPeakExist                  = marshelledData.IsVPeakExist;
     VPeakAmplitude                = marshelledData.VPeakAmplitude;
     TimestampStartOfQRSInterval   = ConvertIndexToTimestamp(0, currentTimestamp, samplingRate, currentIndex, shiftBS);
     TimestampEndOfQRSInterval     = ConvertIndexToTimestamp(0, currentTimestamp, samplingRate, currentIndex, shiftBS);
     TimestampRPeak                = ConvertIndexToTimestamp(0, currentTimestamp, samplingRate, currentIndex, shiftBS);
     TimestampStartOfPWaveInterval = ConvertIndexToTimestamp(0, currentTimestamp, samplingRate, currentIndex, shiftBS);
     TimestampEndOfPWaveInterval   = ConvertIndexToTimestamp(0, currentTimestamp, samplingRate, currentIndex, shiftBS);
     TimestampPPeak                = ConvertIndexToTimestamp(0, currentTimestamp, samplingRate, currentIndex, shiftBS);
     TimestampAPeak                = ConvertIndexToTimestamp(0, currentTimestamp, samplingRate, currentIndex, shiftIC);
     TimestampVPeak                = ConvertIndexToTimestamp(0, currentTimestamp, samplingRate, currentIndex, shiftIC);
     //todo: check calculation
     TimestampTPeak     = ConvertIndexToTimestamp(0, currentTimestamp, samplingRate, currentIndex, shiftIC);
     IsLumenMarkerExist = marshelledData.IsLumenMarkerExist;
     LumenPosition      = marshelledData.LumenPosition;
 }
예제 #2
0
 public void AppendEcgCycleDescriptionSample(ECGCycleDescription e)
 {
     Hdf5.WriteStrings(GroupId, "ecg_cycle_description", new List <string> {
         e.AsJson()
     });
 }