pixled-lib  1.0
Public Member Functions | List of all members
pixled::random::UniformDistribution< R > Class Template Reference

#include <random.h>

Inheritance diagram for pixled::random::UniformDistribution< R >:
Inheritance graph
[legend]
Collaboration diagram for pixled::random::UniformDistribution< R >:
Collaboration graph
[legend]

Public Member Functions

operator() (led l, time t) const override
 
- Public Member Functions inherited from pixled::Function< UniformDistribution< R >, R, R, R, random_engine >
 Function (Fcts &&... fcts)
 
const base::Function< typename std::tuple_element< i, decltype(args)>::type::Type > & arg () const
 
std::tuple_element< i, decltype(args)>::type::Type call (led l, time t) const
 

Additional Inherited Members

- Public Types inherited from pixled::Function< UniformDistribution< R >, R, R, R, random_engine >
using Type = typename base::Function< R >::Type
 
- Public Types inherited from pixled::base::Function< R >
typedef R Type
 
- Protected Member Functions inherited from pixled::Function< UniformDistribution< R >, R, R, R, random_engine >
base::Function< R > * copy () const override
 
- Protected Attributes inherited from pixled::Function< UniformDistribution< R >, R, R, R, random_engine >
std::tuple< const FctWrapper< Args >... > args
 

Detailed Description

template<typename R>
class pixled::random::UniformDistribution< R >

An random uniform distribution of numbers.

Parameters
Rlower bound
Rupper bound
random_enginerandom engine passed to the distribution (see RandomT, RandomXYT)
Returns
a value in the specified interval, distributed according an uniform distribution.
Examples
pixled/conditional/conditional.cpp, and pixled/random/uniform.cpp.

Member Function Documentation

◆ operator()()

template<typename R >
R pixled::random::UniformDistribution< R >::operator() ( led  l,
time  t 
) const
inlineoverridevirtual

Computes the value of this Function for led l at time t.

Parameters
lled
ttime
Returns
Result of this Function, evaluated on led l at time t. Notice that evaluating a function usually requires the recursive evaluation of other Functions (that are actually parameters of this function) until a Constant is reached for example.

Implements pixled::base::Function< R >.


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