C# 클래스 Porrey.Uwp.IoT.Calibration.NumericExtensions

파일 보기 프로젝트 열기: porrey/iot

공개 메소드들

메소드 설명
AsRange ( this value, float minimumValue, float maximumValue ) : float

Returns the value within the range specified.

AsRange ( this value, int minimumValue, int maximumValue ) : int

Returns the value within the range specified.

AsScaledValue ( this value, float maximumValue ) : float

Returns the value read from the channel as a scaled against the specified maximum value.

AsScaledValue ( this value, int maximumValue ) : int

Returns the value read from the channel as a scaled against the specified maximum value.

Maximum ( this value, float maximumValue ) : float

Returns a value that is never larger than maximumValue.

Maximum ( this value, int maximumValue ) : int

Returns a value that is never larger than maximum.

Minimum ( this value, float minimumValue ) : float

Returns a value that is never smaller than minimumValue.

Minimum ( this value, int minimumValue ) : int

Returns a value that is never smaller than minimumValue.

Normalize ( this value, float maximumValue ) : float

Normalzies value to a number between 0 and 1.

WithCalibration ( this value, float calibratedMaximum ) : float

Returns an adjusted value based on a calibration done to determine the maximum value of the device.

메소드 상세

AsRange() 공개 정적인 메소드

Returns the value within the range specified.
public static AsRange ( this value, float minimumValue, float maximumValue ) : float
value this
minimumValue float The lower end of the range and the minimum value returned.
maximumValue float The upper end of the range and the maximum value returned.
리턴 float

AsRange() 공개 정적인 메소드

Returns the value within the range specified.
public static AsRange ( this value, int minimumValue, int maximumValue ) : int
value this
minimumValue int The lower end of the range and the minimum value returned.
maximumValue int The upper end of the range and the maximum value returned.
리턴 int

AsScaledValue() 공개 정적인 메소드

Returns the value read from the channel as a scaled against the specified maximum value.
public static AsScaledValue ( this value, float maximumValue ) : float
value this
maximumValue float The largest allowed value.
리턴 float

AsScaledValue() 공개 정적인 메소드

Returns the value read from the channel as a scaled against the specified maximum value.
public static AsScaledValue ( this value, int maximumValue ) : int
value this
maximumValue int The largest allowed value.
리턴 int

Maximum() 공개 정적인 메소드

Returns a value that is never larger than maximumValue.
public static Maximum ( this value, float maximumValue ) : float
value this The value that is limited.
maximumValue float The maximum value.
리턴 float

Maximum() 공개 정적인 메소드

Returns a value that is never larger than maximum.
public static Maximum ( this value, int maximumValue ) : int
value this The value that is limited.
maximumValue int The maximum value.
리턴 int

Minimum() 공개 정적인 메소드

Returns a value that is never smaller than minimumValue.
public static Minimum ( this value, float minimumValue ) : float
value this The value that is limited.
minimumValue float
리턴 float

Minimum() 공개 정적인 메소드

Returns a value that is never smaller than minimumValue.
public static Minimum ( this value, int minimumValue ) : int
value this The value that is limited.
minimumValue int
리턴 int

Normalize() 공개 정적인 메소드

Normalzies value to a number between 0 and 1.
public static Normalize ( this value, float maximumValue ) : float
value this The value to be normalized.
maximumValue float The maximum of value.
리턴 float

WithCalibration() 공개 정적인 메소드

Returns an adjusted value based on a calibration done to determine the maximum value of the device.
public static WithCalibration ( this value, float calibratedMaximum ) : float
value this The sensor reading to be calibrated.
calibratedMaximum float The maximum value based on calibration of the sensor.
리턴 float