Introduction
Macro Definition Documentation◆ DEBUG_RANDOM
Function Documentation◆ randomReset()
Resets the random seed using the current time so, in principle, the reset is hard to predict. Definition at line 18 of file random.c. References randomSet(). Referenced by main(). ◆ randomSet()
Sets the random to the given value. This is used to get repetitive sequences of random numbers in order to debug mainly. Please, note that when using advanced numerical libraries (BLAS) the result of numerical computations can be different at each run (https://bebop.cs.berkeley.edu/reproblas). The differences are tiny (at the machine precision) but in some systems (specially with dynamics) such errors can accumulate and produce a different result in each run. To avoid this, you can increase the DEBUG level (in the main CMake file) since then BLAS is not used. However, parallelism will not be used either and the execution will be much slower.
Definition at line 23 of file random.c. Referenced by main(), and randomReset(). ◆ randomDouble()
Returns a random number in the [0,1] interval selected with a uniform distribution.
Definition at line 35 of file random.c. Referenced by AddBranchToAtlasDynamicRRT(), ApproachState(), AtlasRRT(), AtlasRRTSample(), AtlasRRTValidateSample(), BuildAtlasFromPoint(), GenerateProjectionPlanes(), GetActionFromID(), kinoEST(), randomInBall(), randomInInterval(), randomMax(), randomNormal(), randomVector(), randomWithDistribution(), RRTSample(), SimplexAddNewConstraint(), and TransitionTestRRT(). ◆ randomNormal()
Returns a random number following a normal distribution with mean 0 and standard deviation 1.
Definition at line 46 of file random.c. References FALSE, randomDouble(), and TRUE. Referenced by randomInBall(), and randomOnBall(). ◆ randomInInterval()
Returns a random number in the given interval selected with a uniform distribution.
Definition at line 83 of file random.c. References LowerLimit(), randomDouble(), and UpperLimit(). Referenced by CuikGradientInBox(), CuikNewtonInBox(), IncrementalSampleCuikSystemInBox(), RandomPointInBox(), RandomPointInPolytope(), and SampleCuikSystemInBox(). ◆ randomMax()
Returns a random integer in the range [0,m] selected with a uniform distribution. Observe that m is included as a possible outcome.
Definition at line 99 of file random.c. References randomDouble(). Referenced by AddBranchToAtlasDynamicRRT(), ComputeSplitDimInt(), IncrementalSampleCuikSystemInBox(), kinoEST(), PolytopeBoundaryPointFromExternalCorner(), RandomPointInAtlas(), RandomPointInAtlasTree(), RandomSmooth(), and SmoothPathInAtlasRRT(). ◆ randomWithDistribution()
Gets a random number following an arbitrary random discrete distribution.
Definition at line 118 of file random.c. References randomDouble(). Referenced by RandomPointInAtlas(), and RandomPointInAtlasTree(). ◆ randomOnBall()
Selects a random point on the surface of a k dimensional ball with uniform distribution.
Definition at line 146 of file random.c. References randomNormal(). Referenced by PolytopeRandomPointOnBoundary(), and SPolytopeRandomPointOnBoundary(). ◆ randomInBall()
Selects a random point inside a k dimensional ball with uniform distribution.
Definition at line 166 of file random.c. References randomDouble(), and randomNormal(). Referenced by RandomPointInSPolytope(), and SPolytopeVolume(). ◆ randomVector()
Random vector with numbers uniformly distributed in the [0,1] interval.
Definition at line 189 of file random.c. References randomDouble(). |
Follow us!