programmerc
Programmer
I currently have data of this form
frame number phi psi
1 -87 65
2 -65 45
3 ... ...
4
5
...
Now, I can sort this data so that phi, psi values are ordered (from -180 to 180) and then convert this data to a histogram of the form
phi count (number of times seen)
-180 234
-179 132
-178 456
...
psi count (number of times seen)
-180 122
-179 154
-178 176
...
But this is bad, for I have two 'uncorrelated' histograms. I would like a correlated version.
Now, I would like to input the original data and output an NxN array where I bin pair values (phi,psi)
e.g.
phi psi count
-180 -180 464
-180 -179 324
-179 -180 133
...
any ideas on how to start this sort of Tcl program?
frame number phi psi
1 -87 65
2 -65 45
3 ... ...
4
5
...
Now, I can sort this data so that phi, psi values are ordered (from -180 to 180) and then convert this data to a histogram of the form
phi count (number of times seen)
-180 234
-179 132
-178 456
...
psi count (number of times seen)
-180 122
-179 154
-178 176
...
But this is bad, for I have two 'uncorrelated' histograms. I would like a correlated version.
Now, I would like to input the original data and output an NxN array where I bin pair values (phi,psi)
e.g.
phi psi count
-180 -180 464
-180 -179 324
-179 -180 133
...
any ideas on how to start this sort of Tcl program?