/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { Resource } from "#models/Resource.js";
Resource.add({
  tag: "datatype",
  name: "MeasurementAccuracyRangeStruct",
  xref: "cluster\xA72.1.3.2",
  details: "This struct represents the accuracy of a measurement for a range of measurement values. Accuracy shall be expressed as a maximum +/- percentage of the true value, a maximum +/- fixed value of the true value, or both.\n  - If both PercentMax and FixedMax are indicated, then for a given true value in the range between RangeMin and RangeMax,\n    - the reported value shall be less than or equal to the sum of the true value, FixedMax and PercentMax percent of the true value.\n    - the reported value shall be greater than or equal to the true value minus the sum of FixedMax and PercentMax percent of the true value.\n  - If only PercentMax is indicated, then for a given true value in the range between RangeMin and RangeMax,\n    - the reported value shall be less than or equal to the sum of the true value and PercentMax percent of the true value.\n    - the reported value shall be greater than or equal to the true value minus PercentMax percent of the true value.\n  - If only FixedMax is indicated, then for a given true value in the range between RangeMin and RangeMax,\n    - the reported value shall be less than or equal to the sum of the true value and FixedMax.\n    - the reported value shall be greater than or equal to the true value minus FixedMax.",
  children: [
    {
      tag: "field",
      name: "RangeMin",
      xref: "cluster\xA72.1.3.2.1",
      details: "This field shall indicate the minimum measurement value for the specified level of accuracy.\nThe value of this field shall be greater than or equal to the value of the MinMeasuredValue field on the encompassing MeasurementAccuracyStruct.\nThe value of this field shall be less than or equal to the value of the MaxMeasuredValue field on the encompassing MeasurementAccuracyStruct."
    },
    {
      tag: "field",
      name: "RangeMax",
      xref: "cluster\xA72.1.3.2.2",
      details: "This field shall indicate the maximum measurement value for the specified level of accuracy.\nThe value of this field shall be greater than the value of the RangeMin field.\nThe value of this field shall be greater than or equal to the value of the MinMeasuredValue field on the encompassing MeasurementAccuracyStruct.\nThe value of this field shall be less than or equal to the value of the MaxMeasuredValue field on the encompassing MeasurementAccuracyStruct."
    },
    {
      tag: "field",
      name: "PercentMax",
      xref: "cluster\xA72.1.3.2.3",
      details: "This field shall indicate the maximum +/- percentage accuracy for the associated measurement."
    },
    {
      tag: "field",
      name: "PercentMin",
      xref: "cluster\xA72.1.3.2.4",
      details: "This field shall indicate the minimum +/- percentage accuracy for the associated measurement."
    },
    {
      tag: "field",
      name: "PercentTypical",
      xref: "cluster\xA72.1.3.2.5",
      details: "This field shall indicate the typical +/- percentage accuracy for the associated measurement."
    },
    {
      tag: "field",
      name: "FixedMax",
      xref: "cluster\xA72.1.3.2.6",
      details: "This field shall indicate the maximum +/- fixed accuracy for the associated measurement, in the unit indicated by MeasurementType."
    },
    {
      tag: "field",
      name: "FixedMin",
      xref: "cluster\xA72.1.3.2.7",
      details: "This field shall indicate the minimum +/- fixed accuracy for the associated measurement, in the unit indicated by MeasurementType."
    },
    {
      tag: "field",
      name: "FixedTypical",
      xref: "cluster\xA72.1.3.2.8",
      details: "This field shall indicate the typical +/- fixed accuracy for the associated measurement, in the unit indicated by MeasurementType."
    }
  ]
});
//# sourceMappingURL=measurement-accuracy-range-struct.resource.js.map
