SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
NormalSampler.h
Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Written (W) 2013 Soumyajit De
00008  */
00009 
00010 #ifndef NORMAL_SAMPLER_H_
00011 #define NORMAL_SAMPLER_H_
00012 
00013 #include <shogun/lib/config.h>
00014 #include <shogun/mathematics/linalg/ratapprox/tracesampler/TraceSampler.h>
00015 
00016 namespace shogun
00017 {
00018 template<class T> class SGVector;
00019 
00022 class CNormalSampler : public CTraceSampler
00023 {
00024 public:
00026     CNormalSampler();
00027 
00031     CNormalSampler(index_t dimension);
00032 
00034     virtual ~CNormalSampler();
00035 
00040     virtual SGVector<float64_t> sample(index_t idx) const;
00041 
00043     virtual void precompute();
00044 
00046     virtual const char* get_name() const
00047     {
00048         return "NormalSampler";
00049     }
00050 };
00051 
00052 }
00053 
00054 #endif // NORMAL_SAMPLER_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation