|
bitsim
Model, simulate, estimate and control robots in C++
|
Normal distribution to be used with torchlib. More...
#include <torch_normal.h>


Public Member Functions | |
| TorchNormalDist (torch_tensor_t mu, torch_tensor_t sigma) | |
| Default constructor. | |
| torch_tensor_t | sample () const |
| get a sample from the distribution | |
| ~TorchNormalDist () override=default | |
| ~TorchCategorical. Destructor | |
| torch_tensor_t | log_prob (torch_tensor_t value) override |
| log_prob | |
| torch_tensor_t | entropy () const override |
| Compute the entropy. | |
| torch_tensor_t | mean () const |
| Returns the mean. | |
| torch_tensor_t | std () const |
| Returns the standard deviation. | |
| Public Member Functions inherited from bitrl::maths::stats::TorchDistributionBase | |
| virtual | ~TorchDistributionBase ()=default |
| Destructor. | |
Additional Inherited Members | |
| Protected Member Functions inherited from bitrl::maths::stats::TorchDistributionBase | |
| TorchDistributionBase ()=default | |
| Constructor. | |
| std::vector< int64_t > | extended_shape (c10::ArrayRef< int64_t > sample_shape) |
| extended_shape | |
| Protected Attributes inherited from bitrl::maths::stats::TorchDistributionBase | |
| std::vector< int64_t > | batch_shape_ |
| batch_shape_ | |
| std::vector< int64_t > | event_shape_ |
| event_shape_ | |
Normal distribution to be used with torchlib.
|
explicit |
Default constructor.
|
overridedefault |
~TorchCategorical. Destructor
|
overridevirtual |
|
overridevirtual |
|
inline |
Returns the mean.
get a sample from the distribution
|
inline |
Returns the standard deviation.