[shark] 28/58: added prototype for the new internal interface (compatible with project partners)

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Mar 16 10:05:30 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository shark.

commit 8b9e108c2723d7e7cb0a426417e07eabc9aa2cc1
Author: Oswin Krause <oswin.krause at di.ku.dk>
Date:   Wed Jan 13 12:42:16 2016 +0100

    added prototype for the new internal interface (compatible with project partners)
---
 src/Algorithms/DirectSearch/CMA.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Algorithms/DirectSearch/CMA.cpp b/src/Algorithms/DirectSearch/CMA.cpp
index ebbfb81..26f24a2 100644
--- a/src/Algorithms/DirectSearch/CMA.cpp
+++ b/src/Algorithms/DirectSearch/CMA.cpp
@@ -323,10 +323,11 @@ void CMA::updatePopulation( std::vector<IndividualType> const& offspring ) {
 	double ev = m_mutationDistribution.eigenValues()( m_mutationDistribution.eigenValues().size() - 1 );
 	if( m_sigma * std::sqrt( std::fabs( ev ) ) < m_lowerBound )
 		m_sigma = m_lowerBound / std::sqrt( std::fabs( ev ) );
-	
+
 	//store best point
 	m_best.point= selectedOffspring[ 0 ].searchPoint();
 	m_best.value= selectedOffspring[ 0 ].unpenalizedFitness();
+
 }
 void CMA::step(ObjectiveFunctionType const& function){
 	std::vector<IndividualType> offspring = generateOffspring();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/shark.git



More information about the debian-science-commits mailing list