Skip to content

Commit

Permalink
Update SimplexBuilder.cxx
Browse files Browse the repository at this point in the history
  • Loading branch information
andriish authored and guitargeek committed Sep 27, 2023
1 parent f4a23f7 commit aebda5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion math/minuit2/src/SimplexBuilder.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ FunctionMinimum SimplexBuilder::Minimum(const MnFcn &mfcn, const GradientCalcula
MnAlgebraicVector step = 10. * seed.Gradient().Gstep();

unsigned int n = x.size();
double wg = 1. / double(n);
double wg = 1. / std::max(1.0,double(n));
double alpha = 1., beta = 0.5, gamma = 2., rhomin = 4., rhomax = 8.;
double rho1 = 1. + alpha;
// double rho2 = rho1 + alpha*gamma;
Expand Down

0 comments on commit aebda5f

Please sign in to comment.