Name

rescale — Rescales X.

Calling Sequence

   [f]=rescale(X,xnew,xold)
   
   

Parameters

X:

matrix (m*n) of data values, m rows represents m data points, n columns data dimensions.;

xold:

current boundaries. xold(1,:) old low boundary for all dimensions n; xold(2,:) old high boundary for all dimensions n.If not given, takes min(X) as low and max(X) as high boundary for every dimensions n.

xnew:

new boundaries. xnew(1,:) new low boundary for all dimensions n; xnew(2,:) new high boundary for all dimensions n.

Description

Rescales X, where xold(1,:)<X<xold(2,:), to f, where xnew(1,:)<f<xnew(2,:).

Examples

xold=[1 2; 2 3]
xnew=[-1 -3; 0 3]
X=[linspace(1,2,10);linspace(2,3,10)]'
rescale(X,xnew)

X=RLHS(10,3,[ 0 0 0],[1 1 1]);
X=rescale(X,[ -1 0 -3;2 1 5]);

   

See also

km, findTheta, SimulateGaussian, SimCondGaussian

Authors

Janis Janusevskis, 3MI/EMSE

Bibliography