DMP_BBO library
Functions
DistributionGaussian.cpp File Reference

DistributionGaussian class source file. More...

#include "bbo/DistributionGaussian.hpp"
#include <iomanip>
#include <boost/random.hpp>
#include <boost/random/variate_generator.hpp>
#include <boost/random/normal_distribution.hpp>
#include <eigen3/Eigen/Core>
#include <eigen3/Eigen/Eigenvalues>
#include "dmpbbo_io/EigenBoostSerialization.hpp"
Include dependency graph for DistributionGaussian.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &output, const DistributionGaussian &distribution)
 

Detailed Description

DistributionGaussian class source file.

Author
Freek Stulp

This file is part of DmpBbo, a set of libraries and programs for the black-box optimization of dynamical movement primitives. Copyright (C) 2014 Freek Stulp, ENSTA-ParisTech

DmpBbo is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

DmpBbo is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with DmpBbo. If not, see http://www.gnu.org/licenses/.

Definition in file DistributionGaussian.cpp.

Function Documentation

std::ostream& DmpBbo::operator<< ( std::ostream &  output,
const DistributionGaussian distribution 
)
Parameters
[in]outputOutput stream to which to write to
[in]distributionDistribution to write
Returns
Output stream

Definition at line 126 of file DistributionGaussian.cpp.

127 {
128  output << "N([" << toString(distribution.mean_) << "], ["<< toString(distribution.covar_) << "])";
129  return output;
130 }
std::string toString(const Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &matrix)
Convert an Eigen matrix to a string.

Here is the call graph for this function: