Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::ReservoirRNG Class Reference
Inheritance diagram for duckdb::ReservoirRNG:
Collaboration diagram for duckdb::ReservoirRNG:

Public Types

typedef uint32_t result_type
 

Public Member Functions

 ReservoirRNG (int64_t seed)
 
result_type operator() ()
 
- Public Member Functions inherited from duckdb::RandomEngine
 RandomEngine (int64_t seed=-1)
 
double NextRandom (double min, double max)
 Generate a random number between min and max.
 
double NextRandom ()
 Generate a random number between 0 and 1.
 
double NextRandom32 ()
 Generate a random number between 0 and 1, using 32-bits as a base.
 
double NextRandom32 (double min, double max)
 
uint32_t NextRandomInteger32 (uint32_t min, uint32_t max)
 
uint32_t NextRandomInteger ()
 
uint32_t NextRandomInteger (uint32_t min, uint32_t max)
 
uint64_t NextRandomInteger64 ()
 
void SetSeed (uint64_t seed)
 
void RandomData (duckdb::data_ptr_t data, duckdb::idx_t len)
 

Static Public Member Functions

static constexpr result_type min ()
 
static constexpr result_type max ()
 
- Static Public Member Functions inherited from duckdb::RandomEngine
static RandomEngineGet (ClientContext &context)
 

Additional Inherited Members

- Public Attributes inherited from duckdb::RandomEngine
mutex lock
 

Constructor & Destructor Documentation

◆ ReservoirRNG()

duckdb::ReservoirRNG::ReservoirRNG ( int64_t  seed)
inlineexplicit
47739: RandomEngine(seed) {};

Member Function Documentation

◆ operator()()

result_type duckdb::ReservoirRNG::operator() ( )
inline
47741 {
47742 return NextRandomInteger();
47743 };

◆ min()

static constexpr result_type duckdb::ReservoirRNG::min ( )
inlinestaticconstexpr
47745 {
47746 return NumericLimits<result_type>::Minimum();
47747 };

◆ max()

static constexpr result_type duckdb::ReservoirRNG::max ( )
inlinestaticconstexpr
47748 {
47749 return NumericLimits<result_type>::Maximum();
47750 };

The documentation for this class was generated from the following file: