05 May 1998
Nonlinear algorithm for controlling dynamical systems, particularly where linear methods fail.
% Highdimensional linear interpolator for possibly nonlinear data sets.
% IN is a vector of reference points of Nxm.
% OUT is a vector of corresponding outputs Nxn
% P is ia vector in a reference (input) space Mxm
% N is the number of nearest neighbors to use in interpolation
% NONL returns an Mxn vector linearly interpolated in the output space
% Procedure: Sort points in IN space by their distance to P
% and find 2*m nearest points to make a linear interpolation by SVD
% Valery Petrov,
% CNLD 10-06-96
% Copyright (c) 1996-1998 The University of Texas at Austin
error('Not enough points in the input vector!');
error('Not enough neighbors specified!');
RHS = RHS-(ones(size(RHS,1),1)*mRHS);
%Condition each column by the fluctuation amplitude
RHS = RHS./(ones(size(RHS,1),1)*sRHS);
u(:,i)=(out(:,ind)/[RHS'; ones(size(ind))])*[LHS'; 1];