matlab - Measure how spread out the data in an array is -
I have zero and one array and I have to know whether the data is spread in columns or centered in clumps. For example:
If I have the array Column 1 value: 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 Column 2 Value: 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 If we calculate the number of people, then we know that this is the same number, but they have spread more well and the columns in column 1 Are distributed in comparison to 1. I am trying to score a score which gives me a higher value if the spread is good and the low price is spreading bad ... any thoughts ?? Sample of data: I think what you are trying to measure is the variance of di Data for you: Pre> But I still believe that you measure the system's disorder Essentially, I am trying to think of Enerpy measures, but I do not know how note that this is a low value if " Proliferation "is good and high value if it is bad (i.e. contrary to your request) In addition, if you want it per column, then it becomes a bit more complex: Warning: This method does not consider too much trailing and major x and have these values:
1 0 0 0 0 -2 -3 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3 -3 1 0 1 2 3 0 5 0 2 13 4 5 1 1 0 0 -4 34 0 0 1
1 s, ie:
f
a = [0 0 0 0 0 0 0 0 0 0 1] F (A) = 8.0498 F (B) = 2.0736
f = @ (x) array = (y) std (diff (find (X (:, y))), 1: size (x, 2)) data = [a ', b'] ; F (Data)
0 s I do not know Whether or not a problem is basically
f ([0; 0; 0; 0]) returns
0 where the form In
f ([0; 0; 0; 0; 0]) gives a positive signal (false) that the first case is more distributed. It is possible to add and add a line to the matrix ...
Comments
Post a Comment