Timeline for Find rank of the row nearest to random variable
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 27, 2018 at 9:15 | comment | added | SAAN | @user42582 Thanks for your comments, I need output in two columns. First column contain "rank" and second "observations". e.g in first row of that table we should have first rank in first column and all first ranked observation in second column of first row {1,{0.22,0.36,0.56...}} or {rank,{observations}}. And about expected range of inputs Matrix size maximum 10*10 but whole process at least repeat 10,000 times. | |
Feb 27, 2018 at 8:09 | comment | added | user42582 | although it's clearer now what you intend to do with your code, it is still unclear to me what the output of the code should be; please clarify. Finally, it would be welcomed if you could provide a hint about the expected range of inputs | |
Feb 27, 2018 at 8:08 | comment | added | user42582 |
thank you for the update; technically it should have been appended to the question as a clarification of what you are trying to achieve-unless you actually intended to answer your own question. For future reference, try and use Seed or BlockRandom when dealing with random numbers; it makes the code reproducible and easier for other users to compare output/intermediate results; also, see @kglr for an idiomatic use of RandomVariate that would have made it easier not to use nested Table 's
|
|
Feb 27, 2018 at 4:13 | history | answered | SAAN | CC BY-SA 3.0 |