explicit_dFF(levelMap, includeHeader)
EXPLICIT_DFF is basically an extension of the FULLFACT function (Statistics and Machine Learning Toolbox or the equivalent can be found in Octave). It allows for an explicit mapping of levels to each parameter within the design. It eliminates the need to encode parameter levels into a numeric mapping of values for FULLFACT.
Useful when you have parameters levels described by strings. Also useful when you don't know all parameters and/or parameter levels ahead of time to define the mapping, which can occur if your full factorial design is being generated based on user input.
% EXPLICIT_DFF
% Explicit mixed-level full-factorial designs
%
% Name:
% explicit_dFF
%
% Description:
% Creates a cell array EXP_DFF containing the explicit factor
% levels/labels for a full factorial design
%
% Inputs:
% levelMap - cell, array containing parameter level mapping to
% design matrix integer levels (i.e., mapping of dFF
% integers to levels/labels)
% includeHeader - boolean, flag indicating whether or not you want to
% include a header in the output design; default is
% to output with header
%
% Outputs:
% expdFF - cell, array containing the explicit mixed-level full
% factorial design matrix with explicit levels/labels
% rather than integer placeholders
%
% Author:
% Curtis Neiderer, Jan 2014
Example Usage:
levelMap = {'System State', {'Up', 'Down'}; ...
'Switch, {true, false}}
levelMap2 =
{1x2 cell}
{1x2 cell}
exp_dFF = explicit_dFF(levelMap)
exp_dFF =
'System' 'Switch'
'Up' [ 1]
'Down' [ 1]
'Up' [ 0]
'Down' [ 0]
levelMap2 = {{'Up', 'Down'}; ...
{true, false}}
levelMap2 =
{1x2 cell}
{1x2 cell}
exp_dFF = explicit_dFF(levelMap2)
exp_dFF =
'Param1' 'Param2'
'Up' [ 1]
'Down' [ 1]
'Up' [ 0]
'Down' [ 0]
Cita come
Curtis N (2024). explicit_dFF(levelMap, includeHeader) (https://www.mathworks.com/matlabcentral/fileexchange/53304-explicit_dff-levelmap-includeheader), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- AI, Data Science, and Statistics > Statistics and Machine Learning Toolbox > Industrial Statistics >
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 | Updated description text Changed description text |