Skip to content
Snippets Groups Projects
Commit 62277569 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

astyle

parent 51af571a
No related branches found
No related tags found
No related merge requests found
...@@ -228,7 +228,7 @@ private: ...@@ -228,7 +228,7 @@ private:
Gaussian(const vector<double> & center,const vector<double> & sigma, double height, bool multivariate): Gaussian(const vector<double> & center,const vector<double> & sigma, double height, bool multivariate):
center(center),sigma(sigma),height(height),multivariate(multivariate),invsigma(sigma) { center(center),sigma(sigma),height(height),multivariate(multivariate),invsigma(sigma) {
// to avoid troubles from zero element in flexible hills // to avoid troubles from zero element in flexible hills
for(unsigned i=0; i<invsigma.size(); ++i) if(abs(invsigma[i])>1.e-20) invsigma[i]=1.0/invsigma[i] ; else invsigma[i]=0.0; for(unsigned i=0; i<invsigma.size(); ++i) if(abs(invsigma[i])>1.e-20) invsigma[i]=1.0/invsigma[i] ; else invsigma[i]=0.0;
} }
}; };
vector<double> sigma0_; vector<double> sigma0_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment