Constructs a design matrix by evaluating basis functions at data points.
DesignMatrix[{{x11, x12, …, y1}, {x21, x22, …, y2}, …}, {f1, f2, …}, {x1, x2, …}]
DesignMatrix[{{1, 1}, {2, 2}, {3, 3}}, x, x]
→ {{1, 1}, {1, 2}, {1, 3}}- IncludeConstantBasis — default True
- NominalVariables — default None
- WorkingPrecision — default Automatic