Main Content

Relative difference threshold

Report parameter precision loss when the quantization error exceeds both absolute and relative difference thresholds

Since R2024a

Model Configuration Pane: Diagnostics / Data Validity

Description

The Relative difference threshold parameter allows you to specify a threshold for parameter precision loss diagnostics. Precision loss is reported only when the quantization error exceeds both the absolute and relative difference thresholds.

Dependencies

To enable this parameter, set the Detect precision loss parameter to warning or error.

Settings

0.0 (default) | nonnegative real scalar double

Threshold for the relative difference between the ideal parameter value and the quantized parameter value, specified as a nonnegative real scalar double. Parameter precision loss diagnostics are reported when the quantization error exceeds both the absolute and relative difference thresholds.

Recommended Settings

ApplicationSetting
DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precaution0.0

Programmatic Use

Parameter: ParamPrecisionLossRelativeDiffThreshold
Type: string | character vector
Values: 0.0 | non-negative real scalar double
Default: 0.0

Version History

Introduced in R2024a