Products & Services Solutions Academia Support User Community Company

Learn more about Model-Based Calibration   

DefineTestGroups - Define rule-based test groupings

Syntax

D = DefineTestGroups(D, variables, tolerances, testnumAlias, 
reorder)

Description

This is a method of mbcmodel.data.

You can impose rules to collect records of the current data set (D) into groups; these groups are referred to as tests. Test groupings are used to define hierarchical structure in the data for two-stage modeling.

Select a variable or variables to group by and set tolerances. The tolerance is used to define groups: on reading through the data, when the value of any specified variable changes by more than the tolerance, a new group is defined.

variables is the input cell array of strings holding the SignalNames on which to define the test groupings.

tolerances is the input double array of the same length as variables holding the required tolerances for the test grouping definition.

testnumAlias is an optional string input to define the SignalName that should be used as the testnumber within MBC. Defaults to the index of the test.

reorder is an optional Boolean indicating that the data should be reordered within the data set. Defaults to false.

See the section on Test Groupings (under Data) in the Model Browser User's Guide for more information on these inputs.

Examples

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

See Also

DefineNumberOfRecordsPerTest, NumberOfTests

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS