Show / Hide Table of Contents

Class LinearMap

Represents a Linear map.

Inheritance
System.Object
EntityBase
MapBase
LinearMap
Inherited Members
MapBase.GetBytes(Double[])
MapBase.GetValuesFromBytes(Byte[])
MapBase.ValidateBilinearMapArguments(ICollection<Double>, String, ICollection<Double>, ICollection<Double>)
MapBase.ValidateLinearMapArguments(Double[], Double[])
MapBase.ValidateBaseArguments(String, String, String, String, String, String)
MapBase.ValidateDataPoints(ICollection<Double>, ICollection<Double>)
MapBase.LocateValueCell(Double[], Int32, Int32, Double)
MapBase.ToString()
MapBase.Name
MapBase.Description
MapBase.Units
MapBase.Format
MapBase.ConversionXFunctionName
MapBase.ConversionValueFunctionName
MapBase.Values
MapBase.BreakXPoints
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.

Back to top Generated by DocFX