I have data in form
list of values ex. {5,7,4} list of frequecies ex. {1,2,3}
I would like to obtain the original data from which such a histogram was generated
ex. {5,7,7,4,4,4}
|
I have data in form list of values ex. {5,7,4} list of frequecies ex. {1,2,3} I would like to obtain the original data from which such a histogram was generated ex. {5,7,7,4,4,4} |
|||
|
|
|
Without looking at performance, but only on understanding:
First, you create a function
and you can call
This all can of course be combined into one call
or
or (to simplify kgulers approach)
and many more |
||||
|
|
both give
Update: further variations using
|
||||
|
|