s_min value increased to remove floating point underflow

This commit is contained in:
Parikshit Ram
2008-01-26 08:46:58 +00:00
parent 29bdd934c7
commit 414886bdeb
+2 -2
View File
@@ -109,7 +109,7 @@ class MoGL2E {
void MakeModel(index_t num_mods, index_t dimension, double* theta) {
double *temp_mu;
Matrix lower_triangle_matrix, upper_triangle_matrix;
double sum, s_min = 0.00001;
double sum, s_min = 0.01;
Init(num_mods, dimension);
temp_mu = (double*) malloc (dimension * sizeof(double)) ;
@@ -190,7 +190,7 @@ class MoGL2E {
void MakeModelWithGradients(index_t num_mods, index_t dimension, double* theta) {
double *temp_mu;
Matrix lower_triangle_matrix, upper_triangle_matrix;
double sum, s_min = 0.00001;
double sum, s_min = 0.01;
Init(num_mods, dimension);
temp_mu = (double*) malloc (dimension * sizeof(double));