Timeline for Uniform distribution in trapezoid
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 28, 2023 at 23:06 | comment | added | Ghoster | @Mark UniformDistribution[] was the wrong tool for this job. Craig wrote the code you should have written. | |
Dec 28, 2023 at 22:25 | comment | added | MelaGo | @Mark - You asked for random points "uniformly distributed in a quadrilateral with vertices (2, 2), (1,-2), (-2,-2), (-2, 2)". This answer does in fact address the question you asked. | |
Dec 28, 2023 at 21:19 | comment | added | Mark | Okay, I understand you. Then please delete your answer, since it does not answer the task I set. | |
Dec 28, 2023 at 21:16 | comment | added | Craig Carter | I didn't want to fix your code. It is procedural and doesn't translate well to clear Wolfram Language code. | |
Dec 28, 2023 at 21:14 | comment | added | Craig Carter |
It's uniform. See the documentation on RandomPoint. Otherwise, you can transform the points from a uniform distibution on a square: points/.{x_,y_}:>matrix.{x,y}
|
|
Dec 28, 2023 at 20:52 | review | Low quality posts | |||
Dec 28, 2023 at 21:05 | |||||
Dec 28, 2023 at 20:52 | comment | added | Mark | I asked you to help me correct the code so that the uniform distribution would be in a trapezoid and not in a rectangle, that is, correct the function dist. You wrote separate code. Are you sure this refers to uniform distribution? I don't see a function here UniformDistribution. | |
Dec 28, 2023 at 20:43 | history | edited | MarcoB | CC BY-SA 4.0 |
Formatted code
|
Dec 28, 2023 at 20:31 | history | answered | Craig Carter | CC BY-SA 4.0 |