mqr.doe.Transform.

from_map#

static Transform.from_map(map)#

Construct an affine transform.

See Design of Experiments for examples.

Parameters:
mapdict[float, float]

A dictionary that maps from an existing level to a new level. The dict has two float keys, corresponding to existing levels and mapping to a float that is the new corresponding level. The two pairs exactly define an affine Transform. For example, the dict {0: 10, 1: 20} transforms 0 to 10 and 1 to 20. All other points will be interpolated/extrapolated along a straight line: 0.5 transforms to 15. As a result, the maps expressed in the dict need not correspond to the levels in the current design.

Returns:
Affine