explicit_dFF(levelM​ap, includeHeader)

版本 1.0.0.0 (3.9 KB) 作者: Curtis N
Creates an explicit full factorial experimental design.
49.0 次下载
更新时间 2016/6/30

查看许可证

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]

引用格式

Curtis N (2024). explicit_dFF(levelMap, includeHeader) (https://www.mathworks.com/matlabcentral/fileexchange/53304-explicit_dff-levelmap-includeheader), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Industrial Statistics 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

Updated description text

Changed description text