LinearItemTypePropertyConversion LinearItemTypePropertyConversion LinearItemTypePropertyConversion Class

Definition

A linear conversion of the form x' = mx + b.

public class LinearItemTypePropertyConversion : Microsoft.Health.IItemTypePropertyConversion
type LinearItemTypePropertyConversion = class
    interface IItemTypePropertyConversion
Public Class LinearItemTypePropertyConversion
Implements IItemTypePropertyConversion
Inheritance
LinearItemTypePropertyConversionLinearItemTypePropertyConversionLinearItemTypePropertyConversion
Implements

Constructors

LinearItemTypePropertyConversion(Double, Double) LinearItemTypePropertyConversion(Double, Double) LinearItemTypePropertyConversion(Double, Double)

Creates a new instance of the LinearItemTypePropertyConversion class.

Properties

Multiplier Multiplier Multiplier

The value by which to multiply the original value; the 'm' in the equation x' = mx + b.

Offset Offset Offset

The offset to add in the linear conversion; the 'b' in the equation x' = mx + b.

Methods

Convert(Double) Convert(Double) Convert(Double)

Performs a linear conversion of the form returnValue = Multiplier * value + offset.

CreateFromXml(XPathNavigator) CreateFromXml(XPathNavigator) CreateFromXml(XPathNavigator)

This method converts the Conversion xml to the LinearItemTypePropertyConversion object.

Applies to