ningshuxia
2023-03-14 076301ec9c2c2fc117a062231c4c5f0e8ea6c23c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace IStation.Model.Monitor
{
    /// <summary>
    /// 修正参数
    /// </summary>
    public class CorrectParameters : JsonModel<CorrectParameters>
    {
 
        /// <summary>
        /// 系数A
        /// </summary>
        public double RatioA { get; set; } = 1;
 
        /// <summary>
        /// 系数B
        /// </summary>
        public double RatioB { get; set; } = 0;
 
        /// <summary>
        /// 换算
        /// </summary>
        public double Correct(double value)
        {
            return RatioA * value + RatioB;
        }
    }
}