C# Class Porrey.Uwp.IoT.Calibration.NonLinearCalibration

Allows calibration of a device using a 2nd Order Polynomial in the form y = ax² + bx + c.
Inheritance: Porrey.Uwp.IoT.Calibration.CalibratedMeasurement
Afficher le fichier Open project: porrey/iot

Méthodes publiques

Méthode Description
CalculateFormulaVariables ( CalibrationPoint calibrationPoints, float &a, float &b, float &c ) : void

Calculates the values a, b and c in the formula y = ax² + bx + c

NonLinearCalibration ( float maximum ) : System

Creates an instance of Windows.Devices.Sensors.NonLinearCalibration with the specified point count and maximum reading value.

NonLinearCalibration ( float maximum, CalibrationPoint calibrationPoints ) : System

Creates an instance of Windows.Devices.Sensors.NonLinearCalibration with the specified point count, maximum reading values and calibration points.

NonLinearCalibration ( float minimum, float maximum ) : System

Creates an instance of Windows.Devices.Sensors.NonLinearCalibration with the specified point count and minimum and maximum reading values.

NonLinearCalibration ( float minimum, float maximum, CalibrationPoint calibrationPoints ) : System

Creates an instance of Windows.Devices.Sensors.NonLinearCalibration with the specified point count, minimum and maximum reading values and calibration points.

Méthodes protégées

Méthode Description
OnAdjustedReading ( float x ) : float
OnCalibrationPointsChanged ( CalibrationPoint calibrationPoints ) : void

Method Details

CalculateFormulaVariables() public méthode

Calculates the values a, b and c in the formula y = ax² + bx + c
public CalculateFormulaVariables ( CalibrationPoint calibrationPoints, float &a, float &b, float &c ) : void
calibrationPoints CalibrationPoint
a float
b float
c float
Résultat void

NonLinearCalibration() public méthode

Creates an instance of Windows.Devices.Sensors.NonLinearCalibration with the specified point count and maximum reading value.
public NonLinearCalibration ( float maximum ) : System
maximum float The maximum adjusted reading value allowed.
Résultat System

NonLinearCalibration() public méthode

Creates an instance of Windows.Devices.Sensors.NonLinearCalibration with the specified point count, maximum reading values and calibration points.
public NonLinearCalibration ( float maximum, CalibrationPoint calibrationPoints ) : System
maximum float The maximum adjusted reading value allowed.
calibrationPoints CalibrationPoint The calibrations points used to adjust the reading.
Résultat System

NonLinearCalibration() public méthode

Creates an instance of Windows.Devices.Sensors.NonLinearCalibration with the specified point count and minimum and maximum reading values.
public NonLinearCalibration ( float minimum, float maximum ) : System
minimum float The minimum adjusted reading value allowed.
maximum float The maximum adjusted reading value allowed.
Résultat System

NonLinearCalibration() public méthode

Creates an instance of Windows.Devices.Sensors.NonLinearCalibration with the specified point count, minimum and maximum reading values and calibration points.
public NonLinearCalibration ( float minimum, float maximum, CalibrationPoint calibrationPoints ) : System
minimum float The minimum adjusted reading value allowed.
maximum float The maximum adjusted reading value allowed.
calibrationPoints CalibrationPoint The calibrations points used to adjust the reading.
Résultat System

OnAdjustedReading() protected méthode

protected OnAdjustedReading ( float x ) : float
x float
Résultat float

OnCalibrationPointsChanged() protected méthode

protected OnCalibrationPointsChanged ( CalibrationPoint calibrationPoints ) : void
calibrationPoints CalibrationPoint
Résultat void