Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
thomaspreuth
Posted - 05/13/2008 : 03:44:09 AM Origin Version (Select Help-->About Origin): 7.5 SR4 Operating System: Windows 2000
Hello Forummembers,
I am searching for an idea how to normalize values in a matrix. Does anybody know a solution? Have already searchd the forum, but did not find an appropriate answer yet. Thanks in advance, thomas
1 L A T E S T R E P L I E S (Newest First)
greg
Posted - 05/14/2008 : 11:34:53 AM You can do math on a matrix the same way you can with a dataset. The question is : How do you want to Normalize? Normalize to a range? (Like 0 to 1 or -1 to 1 or 0 to 100 ..) Divide by a value? (like Maximum, Minimum or Standard Deviation)
There is a function that will help get some basic values: sum(matrix1); SUM.MAX=; SUM.MEAN=; SUM.MIN=; SUM.SD=;
With that, you could do something like: matrix1-=SUM.MIN; matrix1/=(SUM.MAX-SUM.MIN); which would normalize the matrix to the range 0 to 1.
The notation matrix1-=SUM.MIN; is shorthand for matrix1=matrix1-SUM.MIN;