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 #ifndef UNIFORM_H
00019 #define UNIFORM_H
00020
00021 #include "pdf.h"
00022
00023 namespace BFL
00024 {
00026 class Uniform: public Pdf<MatrixWrapper::ColumnVector>
00027 {
00028 private:
00030 MatrixWrapper::ColumnVector _Lower;
00032 MatrixWrapper::ColumnVector _Higher;
00034 double _Height;
00035
00036
00037 mutable ColumnVector _samples;
00038
00039 public:
00041
00045 Uniform (const MatrixWrapper::ColumnVector& Center, const MatrixWrapper::ColumnVector& Width);
00046
00048 Uniform (int dimension = 0);
00049
00051
00053 virtual ~Uniform();
00054
00056 friend std::ostream& operator<< (std::ostream& os, const Uniform& u);
00057
00059 virtual Uniform* Clone() const;
00060
00061
00062 virtual Probability ProbabilityGet(const MatrixWrapper::ColumnVector& input) const;
00063 bool SampleFrom (vector<Sample<MatrixWrapper::ColumnVector> >& list_samples,
00064 const int num_samples,
00065 int method=DEFAULT,
00066 void * args=NULL) const;
00067 virtual bool SampleFrom (Sample<MatrixWrapper::ColumnVector>& one_sample, int method=DEFAULT, void * args=NULL) const;
00068
00070
00072 virtual MatrixWrapper::ColumnVector CenterGet() const;
00073
00075
00077 virtual MatrixWrapper::ColumnVector WidthGet() const;
00078
00080
00084 void UniformSet (const MatrixWrapper::ColumnVector& center, const MatrixWrapper::ColumnVector& width);
00085
00086 };
00087
00088 }
00089 #endif
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 Sun Oct 5 2014 22:29:53