Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "conditionalgaussian_additivenoise.h"
00020 #include <cmath>
00021 #include "../wrappers/rng/rng.h"
00022
00023 namespace BFL
00024 {
00025
00026 using namespace MatrixWrapper;
00027
00028 #define CondGausAddNoise ConditionalGaussianAdditiveNoise
00029
00031
00034 CondGausAddNoise::CondGausAddNoise(const Gaussian& additiveNoise,
00035 int num_conditional_arguments)
00036 : ConditionalGaussian(additiveNoise.DimensionGet(),
00037 num_conditional_arguments)
00038 , _additiveNoise_Mu (additiveNoise.ExpectedValueGet())
00039 , _additiveNoise_Sigma(additiveNoise.CovarianceGet())
00040 {}
00041
00042 CondGausAddNoise::CondGausAddNoise(int dim,
00043 int num_conditional_arguments)
00044 : ConditionalGaussian(dim, num_conditional_arguments)
00045 {
00046 _additiveNoise_Mu.resize(dim);
00047 _additiveNoise_Sigma.resize(dim);
00048 }
00049
00051 CondGausAddNoise::~CondGausAddNoise()
00052 {}
00053
00054 SymmetricMatrix
00055 CondGausAddNoise::CovarianceGet() const
00056 {
00057 return AdditiveNoiseSigmaGet();
00058 }
00059
00060 const ColumnVector&
00061 CondGausAddNoise::AdditiveNoiseMuGet() const
00062 {
00063 return _additiveNoise_Mu;
00064 }
00065
00066 const SymmetricMatrix&
00067 CondGausAddNoise::AdditiveNoiseSigmaGet() const
00068 {
00069 return _additiveNoise_Sigma;
00070 }
00071
00072 void
00073 CondGausAddNoise::AdditiveNoiseMuSet(const ColumnVector& mu)
00074 {
00075 _additiveNoise_Mu = mu;
00076 }
00077
00078 void
00079 CondGausAddNoise::AdditiveNoiseSigmaSet(const SymmetricMatrix& sigma)
00080 {
00081 _additiveNoise_Sigma = sigma;
00082 }
00083
00084 }
bfl
Author(s): Klaas Gadeyne, Wim Meeussen, Tinne Delaet and many others. See web page for a full contributor list. ROS package maintained by Wim Meeussen.
autogenerated on Mon Feb 11 2019 03:45:12