主要内容

DefineTestGroups

Define rule-based test groupings

Description

DataObjMod = DefineTestGroups(DataObj,Variables,Tolerances,TestNumAlias,Reorder) defines a rule-based test group. You can impose rules to sort records of DataObj into groups. The groups are tests. Two-stage models use the test groupings to define hierarchical structure in the data.

Use DefineTestGroups to set variables to group. The method uses the tolerance to define groups. When the value of any specified variable changes by more than the tolerance, the method defines a new group.

example

Examples

collapse all

DataObjMod = DefineTestGroups(DataObj, {'AFR' 'RPM'}, [0.1 30], 'MYLOGNO', false);

Input Arguments

collapse all

mbcmodel.data data object.

Character vector containing the SignalNames that define the test groupings.

Data Types: char

Array containing the tolerances for the test grouping definition. Same length as Variables vector.

Data Types: double

Optional character vector input to define the SignalName that the software should use as the test number. Defaults to the test index.

Note

For the test number, testnumAlias uses the first record in the test. Test numbers are unique, so the method does modify duplicates.

Data Types: char

Set to true to reorder data.

Data Types: logical

Output Arguments

collapse all

Modified mbcmodel.data object.

Version History

Introduced before R2006a