Skip to content

Commit

Permalink
Added license.
Browse files Browse the repository at this point in the history
  • Loading branch information
dknoester committed Jun 11, 2012
1 parent c90daad commit cfd1732
Show file tree
Hide file tree
Showing 113 changed files with 2,821 additions and 11 deletions.
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion README.md
@@ -1,4 +1,9 @@
ealib
=====

Evolutionary Algorithms Library
Evolutionary Algorithms Library



Contributors:
David B. Knoester, Heather J. Goldsby, Randy Olson.
26 changes: 23 additions & 3 deletions libea/include/ea/algorithm.h
@@ -1,3 +1,23 @@
/* algorithm.h
*
* This file is part of EALib.
*
* Copyright 2012 David B. Knoester.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _EA_ALGORITHM_H_
#define _EA_ALGORITHM_H_

Expand All @@ -23,7 +43,7 @@ namespace ea {
for(std::size_t i=0; first != last; ++first, ++i)
*first = i;
}

//! x == [-x_range,x_range], normalized to [-output_range,output_range]
template <typename T>
T normalize(T x, T x_range, T output_range) {
Expand All @@ -36,7 +56,7 @@ namespace ea {
T clip(T value, T min, T max) {
return std::max(min, std::min(value, max));
}

//! Convert a sequence of values to a single string with the given separator.
template <typename ForwardIterator>
std::string vcat(ForwardIterator f, ForwardIterator l, const char* sep=" ") {
Expand Down Expand Up @@ -103,7 +123,7 @@ namespace ea {
}
return sum / static_cast<T>(c);
}

} // algorithm
} // ea

Expand Down
20 changes: 20 additions & 0 deletions libea/include/ea/analysis.h
@@ -1,3 +1,23 @@
/* analysis.h
*
* This file is part of EALib.
*
* Copyright 2012 David B. Knoester.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _EA_ANALYSIS_H_
#define _EA_ANALYSIS_H_

Expand Down
20 changes: 20 additions & 0 deletions libea/include/ea/analysis/epistasis.h
@@ -1,3 +1,23 @@
/* epistasis.h
*
* This file is part of EALib.
*
* Copyright 2012 David B. Knoester.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _EA_ANALYSIS_EPISTASIS_H_
#define _EA_ANALYSIS_EPISTASIS_H_

Expand Down
20 changes: 20 additions & 0 deletions libea/include/ea/analysis/girvan_newman_clustering.h
@@ -1,3 +1,23 @@
/* girvan_newman_clustering.h
*
* This file is part of EALib.
*
* Copyright 2012 David B. Knoester.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _EA_ANALYSIS_GIRVAN_NEWMAN_CLUSTERING_H_
#define _EA_ANALYSIS_GIRVAN_NEWMAN_CLUSTERING_H_

Expand Down
20 changes: 20 additions & 0 deletions libea/include/ea/analysis/graph.h
@@ -1,3 +1,23 @@
/* graph.h
*
* This file is part of EALib.
*
* Copyright 2012 David B. Knoester.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _EA_ANALYSIS_GRAPH_H_
#define _EA_ANALYSIS_GRAPH_H_

Expand Down
20 changes: 20 additions & 0 deletions libea/include/ea/analysis/individual.h
@@ -1,3 +1,23 @@
/* individual.h
*
* This file is part of EALib.
*
* Copyright 2012 David B. Knoester.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _EA_ANALYSIS_MAX_FIT_INDIVIDUAL_H_
#define _EA_ANALYSIS_MAX_FIT_INDIVIDUAL_H_

Expand Down
20 changes: 20 additions & 0 deletions libea/include/ea/analysis/information.h
@@ -1,3 +1,23 @@
/* information.h
*
* This file is part of EALib.
*
* Copyright 2012 David B. Knoester.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _EA_ANALYSIS_INFORMATION_H_
#define _EA_ANALYSIS_INFORMATION_H_

Expand Down
20 changes: 20 additions & 0 deletions libea/include/ea/analysis/landscape.h
@@ -1,3 +1,23 @@
/* landscape.h
*
* This file is part of EALib.
*
* Copyright 2012 David B. Knoester.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _EA_ANALYSIS_LANDSCAPE_H_
#define _EA_ANALYSIS_LANDSCAPE_H_

Expand Down
20 changes: 20 additions & 0 deletions libea/include/ea/analysis/line_of_descent.h
@@ -1,3 +1,23 @@
/* line_of_descent.h
*
* This file is part of EALib.
*
* Copyright 2012 David B. Knoester.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _EA_ANALYSIS_LINE_OF_DESCENT_H_
#define _EA_ANALYSIS_LINE_OF_DESCENT_H_

Expand Down
20 changes: 20 additions & 0 deletions libea/include/ea/analysis/modularity.h
@@ -1,3 +1,23 @@
/* modularity.h
*
* This file is part of EALib.
*
* Copyright 2012 David B. Knoester.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _EA_ANALYSIS_MODULARITY_H_
#define _EA_ANALYSIS_MODULARITY_H_

Expand Down
20 changes: 20 additions & 0 deletions libea/include/ea/analysis/population.h
@@ -1,3 +1,23 @@
/* population.h
*
* This file is part of EALib.
*
* Copyright 2012 David B. Knoester.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _EA_ANALYSIS_POPULATION_H_
#define _EA_ANALYSIS_POPULATION_H_

Expand Down
20 changes: 20 additions & 0 deletions libea/include/ea/analysis/tool.h
@@ -1,3 +1,23 @@
/* tool.h
*
* This file is part of EALib.
*
* Copyright 2012 David B. Knoester.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _EA_ANALYSIS_TOOL_H_
#define _EA_ANALYSIS_TOOL_H_

Expand Down
24 changes: 22 additions & 2 deletions libea/include/ea/artificial_life/artificial_life.h
@@ -1,5 +1,25 @@
#ifndef _EA_ARTIFICIAL_LIFE_H_
#define _EA_ARTIFICIAL_LIFE_H_
/* artificial_life/artificial_life.h
*
* This file is part of EALib.
*
* Copyright 2012 David B. Knoester, Heather J. Goldsby.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _EA_ARTIFICIAL_LIFE_ARTIFICIAL_LIFE_H_
#define _EA_ARTIFICIAL_LIFE_ARTIFICIAL_LIFE_H_

#include <boost/serialization/nvp.hpp>
#include <boost/shared_ptr.hpp>
Expand Down
24 changes: 22 additions & 2 deletions libea/include/ea/artificial_life/environment.h
@@ -1,5 +1,25 @@
#ifndef _EA_ENVIRONMENT_H_
#define _EA_ENVIRONMENT_H_
/* artificial_life/environment.h
*
* This file is part of EALib.
*
* Copyright 2012 David B. Knoester, Heather J. Goldsby.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef _EA_ARTIFICIAL_LIFE_ENVIRONMENT_H_
#define _EA_ARTIFICIAL_LIFE_ENVIRONMENT_H_

#include <boost/serialization/nvp.hpp>

Expand Down

0 comments on commit cfd1732

Please sign in to comment.