param_type Class Reference#
API library
|
rocrand_cpp::normal_distribution< RealType >::param_type Class Reference
The type of the distribution parameter set. More...
#include <rocrand.hpp>
Public Types | |
using | distribution_type = normal_distribution< RealType > |
Alias for convenience. | |
Public Member Functions | |
param_type (RealType mean=0.0, RealType stddev=1.0) | |
Constructs a param_type object with the given distribution parameters. More... | |
param_type (const param_type ¶ms)=default | |
Copy constructor. | |
param_type & | operator= (const param_type ¶ms)=default |
Copy assignment operator. | |
RealType | mean () const |
Returns the deviation distribution parameter. More... | |
RealType | stddev () const |
Returns the standard deviation distribution parameter. More... | |
bool | operator== (const param_type &other) const |
Returns true if the param_type is the same as other . | |
bool | operator!= (const param_type &other) const |
Returns true if the param_type is different from other . | |
Detailed Description
template<class RealType = float>
class rocrand_cpp::normal_distribution< RealType >::param_type
The type of the distribution parameter set.
Constructor & Destructor Documentation
◆ param_type()
template<class RealType = float>
|
inline |
Constructs a param_type
object with the given distribution parameters.
- Parameters
-
mean - mean stddev - standard deviation
Member Function Documentation
◆ mean()
template<class RealType = float>
|
inline |
Returns the deviation distribution parameter.
The default value is 0.0.
◆ stddev()
template<class RealType = float>
|
inline |
Returns the standard deviation distribution parameter.
The default value is 1.0.
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocrand/checkouts/latest/library/include/rocrand/rocrand.hpp
Generated by 1.9.1