- #1
dexterdev
- 194
- 1
Hi all,
suppose I have a random discrete sequence like x= [1 2 3 2 5 2 4 2 3 1 6 3 5] (where possible outcomes are 1,2,3,4,5 or 6) and wanted to get its frequency distribution vector
f=[2 4 3 1 2 1] which means frequency of occurrence of 1 is 2 times, 2 occurs 4 times , and so on. I wanted a mathematical function or operator so that vector x can be transformed to f. Is it possible?
Generally x is the input to the system and f must be the output. And how this case can be generalized to continuous case.
TIA
suppose I have a random discrete sequence like x= [1 2 3 2 5 2 4 2 3 1 6 3 5] (where possible outcomes are 1,2,3,4,5 or 6) and wanted to get its frequency distribution vector
f=[2 4 3 1 2 1] which means frequency of occurrence of 1 is 2 times, 2 occurs 4 times , and so on. I wanted a mathematical function or operator so that vector x can be transformed to f. Is it possible?
Generally x is the input to the system and f must be the output. And how this case can be generalized to continuous case.
TIA