Class RationalConversion
Defines a Rational conversion.
Inherited Members
Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public sealed class RationalConversion : ConversionBase
  Remarks
The RationalConversion contains a range of values to use in the calculation of the conversion to an engineering value.
Examples
The rational conversion is a simple gain and offset linear conversion and the calculation is as follows:
      eng + coefficient3
raw = ------------------
         coefficient6
else, the calculation is as follows:
        coefficient1*eng^2 + coefficient2*eng + coefficient3
raw =   ----------------------------------------------------
        coefficient4*eng^2 + coefficient5*eng + coefficient6
  Constructors
RationalConversion(String, String, String, Double, Double, Double, Double, Double, Double)
Initialises a new instance of the RationalConversion class Creates a RationalConversion object.
Declaration
public RationalConversion(string name, string units, string formatString, double coefficient1, double coefficient2, double coefficient3, double coefficient4, double coefficient5, double coefficient6)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | The name of the conversion.  | 
      
| System.String | units | The units.  | 
      
| System.String | formatString | The format string.  | 
      
| System.Double | coefficient1 | The coefficient1.  | 
      
| System.Double | coefficient2 | The coefficient2.  | 
      
| System.Double | coefficient3 | The coefficient3.  | 
      
| System.Double | coefficient4 | The coefficient4.  | 
      
| System.Double | coefficient5 | The coefficient5.  | 
      
| System.Double | coefficient6 | The coefficient6.  | 
      
Properties
Coefficient1
Gets or sets Coefficient 1 value.
Declaration
public double Coefficient1 { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Double | 
Coefficient2
Gets or sets Coefficient 2 value.
Declaration
public double Coefficient2 { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Double | 
Coefficient3
Gets or sets Coefficient 3 value.
Declaration
public double Coefficient3 { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Double | 
Coefficient4
Gets or sets Coefficient 4 value.
Declaration
public double Coefficient4 { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Double | 
Coefficient5
Gets or sets Coefficient 5 value.
Declaration
public double Coefficient5 { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Double | 
Coefficient6
Gets or sets Coefficient 6 value.
Declaration
public double Coefficient6 { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Double | 
Methods
CreateSimple1To1Conversion(String, String, String)
Create a simple 1 to 1 conversion.
Declaration
public static RationalConversion CreateSimple1To1Conversion(string name, string units, string format)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | name | The name.  | 
      
| System.String | units | The units.  | 
      
| System.String | format | The format.  | 
      
Returns
| Type | Description | 
|---|---|
| RationalConversion | The RationalConversion.  |