26 template<
typename AFloat>
37 for (
size_t i = 0; i <
m; i++) {
38 for (
size_t j = 0; j <
n; j++) {
39 A(i,j) = rand.
Gaus(0.0, sigma);
45 template<
typename AFloat>
54 AFloat range =
sqrt(2.0 / ((AFloat) n));
56 for (
size_t i = 0; i <
m; i++) {
57 for (
size_t j = 0; j <
n; j++) {
58 A(i,j) = rand.
Uniform(-range, range);
64 template<
typename AFloat>
71 for (
size_t i = 0; i <
m; i++) {
72 for (
size_t j = 0; j <
n ; j++) {
83 template<
typename AFloat>
90 for (
size_t i = 0; i <
m; i++) {
91 for (
size_t j = 0; j <
n ; j++) {
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
static void InitializeIdentity(TCpuMatrix< Scalar_t > &A)
static void InitializeUniform(TCpuMatrix< Scalar_t > &A)
static void InitializeGauss(TCpuMatrix< Scalar_t > &A)
This is the base class for the ROOT Random number generators.
static void InitializeZero(TCpuMatrix< Scalar_t > &A)
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
Abstract ClassifierFactory template that handles arbitrary types.