Skip to content

Commit

Permalink
doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpsy committed Mar 18, 2021
1 parent 48a7dde commit 97fcb70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion include/ensmallen_bits/nsga2/nsga2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ class NSGA2 {
*
* @param front The previously generated Pareto fronts.
* @param calculatedObjectives The previously calculated objectives.
* @param crowdingDistance The calculated fitness of the population.
* @param crowdingDistance The crowding distance for each individual in
* the population.
*/
template <typename MatType>
void CrowdingDistanceAssignment(
Expand Down
2 changes: 1 addition & 1 deletion include/ensmallen_bits/nsga2/nsga2_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ typename MatType::elem_type NSGA2::Optimize(
{
CrowdingDistanceAssignment<MatType>(
fronts[fNum], calculatedObjectives, crowdingDistance);
}
}

// Sort based on crowding distance.
std::sort(population.begin(), population.end(),
Expand Down

0 comments on commit 97fcb70

Please sign in to comment.