32 #include <Base/Math/GenerateGauss.hh>
33 #include <Base/Math/Vector.hh>
34 #include <Base/Math/Matrix.hh>
41 int main(
int argc,
char *argv[])
47 bool normalize =
true;
51 if (normalize) cout <<
"normalized ";
52 cout <<
"gauss vector of size "<<size<<
" with sigma "<<sigma<<
" : "<<vg<<endl;
55 if (normalize) cout <<
"normalized ";
56 cout <<
"gauss matrix of size "<<size<<
"x"<<size<<
" with sigma "<<sigma
62 if (normalize) cout <<
"normalized ";
63 cout <<
"gauss vector of size "<<size<<
" with ratio "<<ratio
64 <<
" results in sigma "<<sigma<<
" : "<<vg<<endl;
67 if (normalize) cout <<
"normalized ";
68 cout <<
"gauss matrix of size "<<size<<
"x"<<size<<
" with ratio "<<ratio
69 <<
" results in sigma "<<sigma<<
" : "<<mg<<endl;
74 if (normalize) cout <<
"normalized ";
75 cout <<
"gauss vector with sigma "<<sigma<<
" and ratio "<<ratio
76 <<
" results in size "<<vg.
size()<<
" : "<<vg<<endl;
79 if (normalize) cout <<
"normalized ";
80 cout <<
"gauss matrix with sigma "<<sigma<<
" and ratio "<<ratio
Subscript num_cols() const
static void Gauss1DSigma(const double &sigma, const double &ratio, BIAS::Vector< T > &result, const bool normalize=true)
static void Gauss2DSigma(const double &sigma, const double &ratio, BIAS::Matrix< T > &result, const bool normalize=true)
static void Gauss1D(const unsigned size, const double &sigma, BIAS::Vector< T > &result, const bool normalize=true)
static void Gauss2DSize(const unsigned size, const double &ratio, BIAS::Matrix< T > &result, double &sigma, const bool normalize=true)
static void Gauss2D(const unsigned size, const double &sigma, BIAS::Matrix< T > &result, const bool normalize=true)
static void Gauss1DSize(const unsigned size, const double &ratio, BIAS::Vector< T > &result, double &sigma, const bool normalize=true)
Subscript num_rows() const