Doescale

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search

Purpose

Convert coded DOE to scaled DOE or scaled back to coded.

Synopsis

desgn = doescale(desgn,scales) %coded to scaled
desgn = doescale(desgn) %scaled to coded

Description

When given an coded DOE (desgn) and a cell array (scales) equal in length to the number of factors (i.e. columns) in the DOE, the DOE is converted to the uncoded scaled form using the corresponding values from the scales array.

  • AUTOMATIC LINEAR SCALING: Any cell in scales containing only two values is assumed to be specifying the minimum and maximum values for the DOE and intermediate values are interpolated using the DOEs coded levels. EXAMPLE:
    scales = { [10 15] [20 100] }
    would convert the first factor to uncoded format using a minimum value of 10 and maximum value of 15, and the second factor to a minimum of 20 and maximum of 100.
  • MANUAL CUSTOM SCALING: If any cell has more than two elements, it is assumed to be the specific scales to use for the corresponding factor. It must be equal in length to the number of levels in the corresponding factor. EXAMPLE:
    scales = { [10 15] [20 60 65 70] }
    would convert the second factor to the values indicated (20, 60, 65 and 70) assuming it is a 4-level factor.
  • CUSTOM SCALING WITH MISSING CENTER POINT: If the coded version of given factor has a center point, but the manually-provided scales for that factor is missing one value (e.g. a centered 5-level factor has only 4 scales provided), then a value for the center point is automatically added by calculating the mean of the provided scales. Thus, scales of [10 20 30 40] for a 5-level factor would use 25 for the center point, which is the equivalent of having passed [10 20 25 30 40] for the scales.
  • RE-CODING (unscaling): When given only an uncoded DOE (without the scales input), the DOE is converted back to coded format.

Inputs

  • desgn = DOE DataSet.

Optional Inputs

  • scales = Cell array of scales.

Outputs

  • desgn = Modified DOE DataSet.

See Also

ccdface, ccdsphere, doeinteractions, factdes, ffacdes1