You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Alex Herbert (Jira)" <ji...@apache.org> on 2021/05/11 21:47:00 UTC
[jira] [Resolved] (RNG-135) TetrahedronSampler: Sample uniformly
from a tetrahedron
[ https://issues.apache.org/jira/browse/RNG-135?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Herbert resolved RNG-135.
------------------------------
Fix Version/s: 1.4
Resolution: Implemented
Added to master
Commit: b8f4d82fc0eb5f00aafac90e4a040b9032be458b
> TetrahedronSampler: Sample uniformly from a tetrahedron
> -------------------------------------------------------
>
> Key: RNG-135
> URL: https://issues.apache.org/jira/browse/RNG-135
> Project: Commons RNG
> Issue Type: New Feature
> Components: sampling
> Affects Versions: 1.4
> Reporter: Alex Herbert
> Assignee: Alex Herbert
> Priority: Minor
> Fix For: 1.4
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Create a sampler to sample uniformly within a [tetrahedron|https://en.wikipedia.org/wiki/Tetrahedron].
>
> {code:java}
> public abstract class TetrahedronSampler implements
> SharedStateSampler<TetrahedronSampler> {
> public static TetrahedronSampler of(double[] a,
> double[] b,
> double[] c,
> double[] d,
> UniformRandomProvider rng);
> }
> {code}
> Inputs {{a,b,c,d}} are the vertices.
> Sampling can be performed using the algorithm of:
> {noformat}
> Rocchini, C & Cignoni, P (2001)
> Generating Random Points in a Tetrahedron.
> Journal of Graphics Tools 5(4), pp 9-12.
> {noformat}
> [DOI: 10.1080/10867651.2000.10487528|https://dx.doi.org/10.1080/10867651.2000.10487528]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)