using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IStation.Model
{
///
/// 一元系数参数
///
public class OnceRatioMatrix : JsonModel
{
//表达式
private const string _expression = "ax+b";
///
/// 系数A
///
public double RatioA { get; set; } = 1;
///
/// 系数B
///
public double RatioB { get; set; } = 0;
///
/// 换算
///
public double Matrix(double value)
{
return RatioA * value + RatioB;
}
///
/// 获取表达式
///
public string GetExpression()
{
return _expression;
}
}
}