Class TableConversion
Defines a table conversion.
Inherited Members
Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class TableConversion : ConversionBase
Constructors
TableConversion()
Initialises a new instance of the TableConversion class.
Declaration
public TableConversion()
TableConversion(String, String, String, Double[], Double[], Boolean)
Initialises a new instance of the TableConversion class.
Declaration
public TableConversion(string name, string units, string formatString, double[] rawValues, double[] calibratedValues, bool interpolated)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the conversion. |
System.String | units | The units used by the conversion. |
System.String | formatString | The format string. |
System.Double[] | rawValues | The raw values. |
System.Double[] | calibratedValues | The calibrated values. |
System.Boolean | interpolated | If set to |
Properties
CalibratedValues
Gets or sets an array of engineering values that map to the supplied raw values.
Declaration
public double[] CalibratedValues { get; set; }
Property Value
Type | Description |
---|---|
System.Double[] |
Interpolated
Gets or sets a value indicating whether that when true causes a linear interpolation to be used to create an engineering value when there is no exact match in the table, otherwise the nearest value is used.
Declaration
public bool Interpolated { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
RawValues
Gets or sets an array of raw values that populate the map.
Declaration
public double[] RawValues { get; set; }
Property Value
Type | Description |
---|---|
System.Double[] |
TableSize
Gets the number of elements that make up the mapping.
Declaration
public int TableSize { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Create()
Create the instance.
Declaration
public static TableConversion Create()
Returns
Type | Description |
---|---|
TableConversion | The TableConversion. |