Sfoglia il codice sorgente

调整增量值算法

td_orm
H Vs 1 anno fa
parent
commit
533fb93486
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +3
    -3
      HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressController.cs

+ 3
- 3
HealthMonitor.WebApi/Controllers/HealthMonitor/HmBloodPressController.cs Vedi File

@@ -144,9 +144,9 @@ namespace HealthMonitor.WebApi.Controllers.HealthMonitor
// 偏移参数
var avgOffset = 0.25M;

// 增量值
var systolicInc = systolicAvg.Equals(0M) ? 0:(int)(systolicRefValue - systolicAvg * avgOffset)!;
var diastolicInc = diastolicAvg.Equals(0M) ? 0 : (int)(diastolicRefValue - diastolicAvg * avgOffset)!;
// 增量值=(标定值-平均值)* 0.25
var systolicInc = systolicAvg.Equals(0M) ? 0: (int)((systolicRefValue - systolicAvg)* avgOffset)!;
var diastolicInc = diastolicAvg.Equals(0M) ? 0 : (int)((diastolicRefValue - diastolicAvg) * avgOffset)!;

#endregion



Loading…
Annulla
Salva