tensorModelSolution
Solve the tensor noisy-data model with iteratively reweighted least squares.
Developer documentation: this item describes internal implementation details.
Declaration
[xi,CmInv,W] = tensorModelSolution(values,designMatrix,distribution,rho_X,Aeq,beq,Aineq,bineq)
Parameters
valuesobservation values as an N-by-1 vectordesignMatrixsplines on the observation grid, N-by-Mdistributiondistribution describing the errorsrho_Xoptional observation correlation matrixAeqoptional equality-constraint matrixbeqoptional equality-constraint valuesAineqoptional inequality-constraint matrixbineqoptional inequality-constraint values
Returns
xifitted tensor spline coefficientsCmInvinverse coefficient covariance or system matrixWfinal weight matrix or weights
Discussion
This is the core fitting loop behind ConstrainedSpline. At each iteration it solves
subject to the supplied equality and inequality constraints, then updates the per-observation variances from the current residuals \(r^{(n)} = y - \mathbf{B}\xi^{(n)}\) through the distribution model.
When rho_X is supplied, the observation covariance is modeled as
and W represents the corresponding weighted solve rather than an explicitly formed inverse matrix.