public class PolynomialCalibration extends Object implements Calibration
| Constructor and Description |
|---|
PolynomialCalibration(org.omg.space.xtce.PolynomialType polynomialElement,
XTCEValidRange validRange,
int rawSizeInBits,
XTCETypedObject.RawType rawTypeName)
Constructs a Calibration object based on the PolynomialType
element in the XTCE document.
|
| Modifier and Type | Method and Description |
|---|---|
Number |
calibrate(Number xValue)
Apply this Polynomial Calibrator to an uncalibrated value.
|
Number |
uncalibrate(Number yValue)
Apply this Polynomial Calibrator to an already calibrated value.
|
public PolynomialCalibration(org.omg.space.xtce.PolynomialType polynomialElement,
XTCEValidRange validRange,
int rawSizeInBits,
XTCETypedObject.RawType rawTypeName)
polynomialElement - PolynomialType containing the data.validRange - XTCEValidRange object associated with the typed object
so that a "best" uncalibrated value can be deduced during the usage of
the uncalibrate() method.rawSizeInBits - int containing the raw encoding size in bits to
help deduce a "best" uncalibrated value when using the uncalibrate()
method.rawTypeName - RawType enumeration containing the raw encoding
type to help deduce a "best" uncalibrated value when using the
uncalibrate() method.public Number calibrate(Number xValue) throws XTCEDatabaseException
calibrate in interface CalibrationxValue - Number containing the uncalibrated value.XTCEDatabaseException - in the event that the PolynomialCalibrator
does not have any terms, which would also be invalid in the XTCE
document when the schema is checked against the document.public Number uncalibrate(Number yValue) throws XTCEDatabaseException
uncalibrate in interface CalibrationyValue - Number containing a calibrated value.XTCEDatabaseException - in the event that the PolynomialCalibrator
does not have any terms, which would also be invalid in the XTCE
document when the schema is checked against the document. The exception
can also be thrown in the event that there are no real roots for a
quadratic uncalibrate or the polynomial has a higher order than a
quadratic, which is not currently supported by this toolkit.Copyright © 2015–2019. All rights reserved.