Class LinearMap
Represents a Linear map.
Inherited Members
Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class LinearMap : MapBase
Remarks
The linear map can be used to apply a linear operator against an x value to yield a return value.
A conversion can be applied to the x and return value. Return values are interpolated.
Constructors
LinearMap(String, String, String, String, String, String, Double[], Double[])
Initialises a new instance of the LinearMap class.
Declaration
public LinearMap(string name, string description, string units, string format, string conversionXFunctionName, string conversionValueFunctionName, double[] breakXPoints, double[] values)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the map. |
System.String | description | The description. |
System.String | units | The units used by the map. |
System.String | format | The format of the map. |
System.String | conversionXFunctionName | The conversion X function. |
System.String | conversionValueFunctionName | The conversion value function. |
System.Double[] | breakXPoints | The break X points. |
System.Double[] | values | The values in the map. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown if the number of elements in breakXPoints is not equal to the number of elements in values. |
System.ArgumentNullException | Thrown if conversionXFunctionName is null. |
System.ArgumentNullException | Thrown if conversionValueFunctionName is null. |
Methods
Lookup(Double)
Returns the data value for a given X value
Declaration
public double Lookup(double valueX)
Parameters
Type | Name | Description |
---|---|---|
System.Double | valueX | X Data Value |
Returns
Type | Description |
---|---|
System.Double | Data Value. |