[mlpack] 51/53: Add license to the rest of the files.

Barak A. Pearlmutter barak+git at pearlmutter.net
Mon Nov 14 00:46:51 UTC 2016


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

bap pushed a commit to branch master
in repository mlpack.

commit 871d8e9586e6a66c612ce428a8a0ba34ec4aea76
Author: Ryan Curtin <ryan at ratml.org>
Date:   Mon Oct 31 22:43:32 2016 +0900

    Add license to the rest of the files.
---
 src/mlpack/core/data/binarize.hpp                     |  5 +++++
 src/mlpack/core/data/dataset_mapper.hpp               |  5 +++++
 src/mlpack/core/data/dataset_mapper_impl.hpp          |  5 +++++
 src/mlpack/core/data/extension.hpp                    |  5 +++++
 src/mlpack/core/data/format.hpp                       |  5 +++++
 .../data/imputation_methods/custom_imputation.hpp     |  5 +++++
 .../data/imputation_methods/listwise_deletion.hpp     |  5 +++++
 .../core/data/imputation_methods/mean_imputation.hpp  |  5 +++++
 .../data/imputation_methods/median_imputation.hpp     |  5 +++++
 src/mlpack/core/data/imputer.hpp                      |  5 +++++
 src/mlpack/core/data/load.hpp                         |  5 +++++
 src/mlpack/core/data/load_arff.hpp                    |  5 +++++
 src/mlpack/core/data/load_arff_impl.hpp               |  5 +++++
 src/mlpack/core/data/load_impl.hpp                    |  5 +++++
 src/mlpack/core/data/map_policies/datatype.hpp        |  5 +++++
 .../core/data/map_policies/increment_policy.hpp       |  5 +++++
 src/mlpack/core/data/map_policies/missing_policy.hpp  |  5 +++++
 src/mlpack/core/data/normalize_labels.hpp             |  5 +++++
 src/mlpack/core/data/normalize_labels_impl.hpp        |  5 +++++
 src/mlpack/core/data/save.hpp                         |  5 +++++
 src/mlpack/core/data/save_impl.hpp                    |  5 +++++
 src/mlpack/core/data/serialization_shim.hpp           |  5 +++++
 .../core/data/serialization_template_version.hpp      |  5 +++++
 src/mlpack/core/data/split_data.hpp                   |  5 +++++
 src/mlpack/core/dists/discrete_distribution.cpp       |  5 +++++
 src/mlpack/core/dists/discrete_distribution.hpp       |  5 +++++
 src/mlpack/core/dists/gamma_distribution.cpp          |  5 +++++
 src/mlpack/core/dists/gamma_distribution.hpp          |  5 +++++
 src/mlpack/core/dists/gaussian_distribution.cpp       |  5 +++++
 src/mlpack/core/dists/gaussian_distribution.hpp       |  5 +++++
 src/mlpack/core/dists/laplace_distribution.cpp        |  5 +++++
 src/mlpack/core/dists/laplace_distribution.hpp        |  5 +++++
 src/mlpack/core/dists/regression_distribution.cpp     |  5 +++++
 src/mlpack/core/dists/regression_distribution.hpp     |  5 +++++
 src/mlpack/core/kernels/cosine_distance.hpp           |  5 +++++
 src/mlpack/core/kernels/cosine_distance_impl.hpp      |  5 +++++
 src/mlpack/core/kernels/epanechnikov_kernel.cpp       |  5 +++++
 src/mlpack/core/kernels/epanechnikov_kernel.hpp       |  5 +++++
 src/mlpack/core/kernels/epanechnikov_kernel_impl.hpp  |  5 +++++
 src/mlpack/core/kernels/example_kernel.hpp            |  5 +++++
 src/mlpack/core/kernels/gaussian_kernel.hpp           |  5 +++++
 src/mlpack/core/kernels/hyperbolic_tangent_kernel.hpp |  5 +++++
 src/mlpack/core/kernels/kernel_traits.hpp             |  5 +++++
 src/mlpack/core/kernels/laplacian_kernel.hpp          |  5 +++++
 src/mlpack/core/kernels/linear_kernel.hpp             |  5 +++++
 src/mlpack/core/kernels/polynomial_kernel.hpp         |  5 +++++
 src/mlpack/core/kernels/pspectrum_string_kernel.cpp   |  5 +++++
 src/mlpack/core/kernels/pspectrum_string_kernel.hpp   |  5 +++++
 .../core/kernels/pspectrum_string_kernel_impl.hpp     |  5 +++++
 src/mlpack/core/kernels/spherical_kernel.hpp          |  5 +++++
 src/mlpack/core/kernels/triangular_kernel.hpp         |  5 +++++
 src/mlpack/core/math/clamp.hpp                        |  5 +++++
 src/mlpack/core/math/columns_to_blocks.cpp            |  5 +++++
 src/mlpack/core/math/columns_to_blocks.hpp            |  5 +++++
 src/mlpack/core/math/lin_alg.cpp                      |  5 +++++
 src/mlpack/core/math/lin_alg.hpp                      |  5 +++++
 src/mlpack/core/math/lin_alg_impl.hpp                 |  5 +++++
 src/mlpack/core/math/random.cpp                       |  5 +++++
 src/mlpack/core/math/random.hpp                       |  5 +++++
 src/mlpack/core/math/random_basis.cpp                 |  5 +++++
 src/mlpack/core/math/random_basis.hpp                 |  5 +++++
 src/mlpack/core/math/range.hpp                        |  5 +++++
 src/mlpack/core/math/range_impl.hpp                   |  5 +++++
 src/mlpack/core/math/round.hpp                        |  5 +++++
 src/mlpack/core/metrics/ip_metric.hpp                 |  5 +++++
 src/mlpack/core/metrics/ip_metric_impl.hpp            |  5 +++++
 src/mlpack/core/metrics/lmetric.hpp                   |  5 +++++
 src/mlpack/core/metrics/lmetric_impl.hpp              |  5 +++++
 src/mlpack/core/metrics/mahalanobis_distance.hpp      |  5 +++++
 src/mlpack/core/metrics/mahalanobis_distance_impl.hpp |  5 +++++
 src/mlpack/core/optimizers/adadelta/ada_delta.hpp     |  5 +++++
 .../core/optimizers/adadelta/ada_delta_impl.hpp       |  5 +++++
 src/mlpack/core/optimizers/adam/adam.hpp              |  5 +++++
 src/mlpack/core/optimizers/adam/adam_impl.hpp         |  5 +++++
 .../core/optimizers/aug_lagrangian/aug_lagrangian.hpp |  5 +++++
 .../aug_lagrangian/aug_lagrangian_function.hpp        |  5 +++++
 .../aug_lagrangian/aug_lagrangian_function_impl.hpp   |  5 +++++
 .../optimizers/aug_lagrangian/aug_lagrangian_impl.hpp |  5 +++++
 .../aug_lagrangian/aug_lagrangian_test_functions.cpp  |  5 +++++
 .../aug_lagrangian/aug_lagrangian_test_functions.hpp  |  5 +++++
 .../optimizers/gradient_descent/gradient_descent.hpp  |  5 +++++
 .../gradient_descent/gradient_descent_impl.hpp        |  5 +++++
 .../optimizers/gradient_descent/test_function.cpp     |  5 +++++
 .../optimizers/gradient_descent/test_function.hpp     |  5 +++++
 src/mlpack/core/optimizers/lbfgs/lbfgs.hpp            |  5 +++++
 src/mlpack/core/optimizers/lbfgs/lbfgs_impl.hpp       |  5 +++++
 src/mlpack/core/optimizers/lbfgs/test_functions.cpp   |  5 +++++
 src/mlpack/core/optimizers/lbfgs/test_functions.hpp   |  5 +++++
 .../core/optimizers/minibatch_sgd/minibatch_sgd.hpp   |  5 +++++
 .../optimizers/minibatch_sgd/minibatch_sgd_impl.hpp   |  5 +++++
 src/mlpack/core/optimizers/rmsprop/rmsprop.hpp        |  5 +++++
 src/mlpack/core/optimizers/rmsprop/rmsprop_impl.hpp   |  5 +++++
 .../core/optimizers/sa/exponential_schedule.hpp       |  5 +++++
 src/mlpack/core/optimizers/sa/sa.hpp                  |  5 +++++
 src/mlpack/core/optimizers/sa/sa_impl.hpp             |  5 +++++
 src/mlpack/core/optimizers/sdp/lrsdp.hpp              |  5 +++++
 src/mlpack/core/optimizers/sdp/lrsdp_function.hpp     |  5 +++++
 .../core/optimizers/sdp/lrsdp_function_impl.hpp       |  5 +++++
 src/mlpack/core/optimizers/sdp/lrsdp_impl.hpp         |  5 +++++
 src/mlpack/core/optimizers/sdp/primal_dual.hpp        |  5 +++++
 src/mlpack/core/optimizers/sdp/primal_dual_impl.hpp   |  5 +++++
 src/mlpack/core/optimizers/sdp/sdp.hpp                |  5 +++++
 src/mlpack/core/optimizers/sdp/sdp_impl.hpp           |  5 +++++
 src/mlpack/core/optimizers/sgd/sgd.hpp                |  5 +++++
 src/mlpack/core/optimizers/sgd/sgd_impl.hpp           |  5 +++++
 src/mlpack/core/optimizers/sgd/test_function.cpp      |  5 +++++
 src/mlpack/core/optimizers/sgd/test_function.hpp      |  5 +++++
 src/mlpack/core/tree/address.hpp                      |  5 +++++
 src/mlpack/core/tree/ballbound.hpp                    |  5 +++++
 src/mlpack/core/tree/ballbound_impl.hpp               |  5 +++++
 src/mlpack/core/tree/binary_space_tree.hpp            |  5 +++++
 .../core/tree/binary_space_tree/binary_space_tree.hpp |  5 +++++
 .../tree/binary_space_tree/binary_space_tree_impl.hpp |  5 +++++
 .../breadth_first_dual_tree_traverser.hpp             |  5 +++++
 .../breadth_first_dual_tree_traverser_impl.hpp        |  5 +++++
 .../tree/binary_space_tree/dual_tree_traverser.hpp    |  5 +++++
 .../binary_space_tree/dual_tree_traverser_impl.hpp    |  5 +++++
 src/mlpack/core/tree/binary_space_tree/mean_split.hpp |  5 +++++
 .../core/tree/binary_space_tree/mean_split_impl.hpp   |  5 +++++
 .../core/tree/binary_space_tree/midpoint_split.hpp    |  5 +++++
 .../tree/binary_space_tree/midpoint_split_impl.hpp    |  5 +++++
 .../core/tree/binary_space_tree/rp_tree_max_split.hpp |  5 +++++
 .../tree/binary_space_tree/rp_tree_max_split_impl.hpp |  5 +++++
 .../tree/binary_space_tree/rp_tree_mean_split.hpp     |  5 +++++
 .../binary_space_tree/rp_tree_mean_split_impl.hpp     |  5 +++++
 .../tree/binary_space_tree/single_tree_traverser.hpp  |  5 +++++
 .../binary_space_tree/single_tree_traverser_impl.hpp  |  5 +++++
 src/mlpack/core/tree/binary_space_tree/traits.hpp     |  5 +++++
 src/mlpack/core/tree/binary_space_tree/typedef.hpp    |  5 +++++
 .../core/tree/binary_space_tree/ub_tree_split.hpp     |  5 +++++
 .../tree/binary_space_tree/ub_tree_split_impl.hpp     |  5 +++++
 .../tree/binary_space_tree/vantage_point_split.hpp    |  5 +++++
 .../binary_space_tree/vantage_point_split_impl.hpp    |  5 +++++
 src/mlpack/core/tree/bound_traits.hpp                 |  5 +++++
 src/mlpack/core/tree/bounds.hpp                       |  5 +++++
 src/mlpack/core/tree/cellbound.hpp                    |  5 +++++
 src/mlpack/core/tree/cellbound_impl.hpp               |  5 +++++
 src/mlpack/core/tree/cosine_tree/cosine_tree.cpp      |  5 +++++
 src/mlpack/core/tree/cosine_tree/cosine_tree.hpp      |  5 +++++
 src/mlpack/core/tree/cover_tree.hpp                   |  5 +++++
 src/mlpack/core/tree/cover_tree/cover_tree.hpp        |  5 +++++
 src/mlpack/core/tree/cover_tree/cover_tree_impl.hpp   |  5 +++++
 .../core/tree/cover_tree/dual_tree_traverser.hpp      |  5 +++++
 .../core/tree/cover_tree/dual_tree_traverser_impl.hpp |  5 +++++
 .../core/tree/cover_tree/first_point_is_root.hpp      |  5 +++++
 .../core/tree/cover_tree/single_tree_traverser.hpp    |  5 +++++
 .../tree/cover_tree/single_tree_traverser_impl.hpp    |  5 +++++
 src/mlpack/core/tree/cover_tree/traits.hpp            |  5 +++++
 src/mlpack/core/tree/cover_tree/typedef.hpp           |  5 +++++
 src/mlpack/core/tree/example_tree.hpp                 |  5 +++++
 src/mlpack/core/tree/greedy_single_tree_traverser.hpp |  5 +++++
 .../core/tree/greedy_single_tree_traverser_impl.hpp   |  5 +++++
 src/mlpack/core/tree/hollow_ball_bound.hpp            |  5 +++++
 src/mlpack/core/tree/hollow_ball_bound_impl.hpp       |  5 +++++
 src/mlpack/core/tree/hrectbound.hpp                   |  5 +++++
 src/mlpack/core/tree/hrectbound_impl.hpp              |  5 +++++
 src/mlpack/core/tree/octree.hpp                       |  5 +++++
 src/mlpack/core/tree/octree/dual_tree_traverser.hpp   |  5 +++++
 .../core/tree/octree/dual_tree_traverser_impl.hpp     |  5 +++++
 src/mlpack/core/tree/octree/octree.hpp                |  5 +++++
 src/mlpack/core/tree/octree/octree_impl.hpp           |  5 +++++
 src/mlpack/core/tree/octree/single_tree_traverser.hpp |  5 +++++
 .../core/tree/octree/single_tree_traverser_impl.hpp   |  5 +++++
 src/mlpack/core/tree/octree/traits.hpp                |  5 +++++
 src/mlpack/core/tree/perform_split.hpp                |  5 +++++
 src/mlpack/core/tree/rectangle_tree.hpp               |  5 +++++
 .../tree/rectangle_tree/discrete_hilbert_value.hpp    |  5 +++++
 .../rectangle_tree/discrete_hilbert_value_impl.hpp    |  5 +++++
 .../core/tree/rectangle_tree/dual_tree_traverser.hpp  | 19 ++++++++++++-------
 .../tree/rectangle_tree/dual_tree_traverser_impl.hpp  | 19 ++++++++++++-------
 .../hilbert_r_tree_auxiliary_information.hpp          |  5 +++++
 .../hilbert_r_tree_auxiliary_information_impl.hpp     |  5 +++++
 .../hilbert_r_tree_descent_heuristic.hpp              |  5 +++++
 .../hilbert_r_tree_descent_heuristic_impl.hpp         |  5 +++++
 .../core/tree/rectangle_tree/hilbert_r_tree_split.hpp |  5 +++++
 .../tree/rectangle_tree/hilbert_r_tree_split_impl.hpp |  5 +++++
 .../tree/rectangle_tree/minimal_coverage_sweep.hpp    |  5 +++++
 .../rectangle_tree/minimal_coverage_sweep_impl.hpp    |  5 +++++
 .../rectangle_tree/minimal_splits_number_sweep.hpp    |  5 +++++
 .../minimal_splits_number_sweep_impl.hpp              |  5 +++++
 .../tree/rectangle_tree/no_auxiliary_information.hpp  |  5 +++++
 .../r_plus_plus_tree_auxiliary_information.hpp        |  5 +++++
 .../r_plus_plus_tree_auxiliary_information_impl.hpp   |  5 +++++
 .../r_plus_plus_tree_descent_heuristic.hpp            |  5 +++++
 .../r_plus_plus_tree_descent_heuristic_impl.hpp       |  5 +++++
 .../rectangle_tree/r_plus_plus_tree_split_policy.hpp  |  5 +++++
 .../rectangle_tree/r_plus_tree_descent_heuristic.hpp  |  5 +++++
 .../r_plus_tree_descent_heuristic_impl.hpp            |  5 +++++
 .../core/tree/rectangle_tree/r_plus_tree_split.hpp    |  5 +++++
 .../tree/rectangle_tree/r_plus_tree_split_impl.hpp    |  5 +++++
 .../tree/rectangle_tree/r_plus_tree_split_policy.hpp  |  5 +++++
 .../rectangle_tree/r_star_tree_descent_heuristic.hpp  |  5 +++++
 .../r_star_tree_descent_heuristic_impl.hpp            |  5 +++++
 .../core/tree/rectangle_tree/r_star_tree_split.hpp    |  5 +++++
 .../tree/rectangle_tree/r_star_tree_split_impl.hpp    |  5 +++++
 .../tree/rectangle_tree/r_tree_descent_heuristic.hpp  |  5 +++++
 .../rectangle_tree/r_tree_descent_heuristic_impl.hpp  |  5 +++++
 src/mlpack/core/tree/rectangle_tree/r_tree_split.hpp  |  5 +++++
 .../core/tree/rectangle_tree/r_tree_split_impl.hpp    |  5 +++++
 .../core/tree/rectangle_tree/rectangle_tree.hpp       |  5 +++++
 .../core/tree/rectangle_tree/rectangle_tree_impl.hpp  |  5 +++++
 .../tree/rectangle_tree/single_tree_traverser.hpp     | 19 ++++++++++++-------
 .../rectangle_tree/single_tree_traverser_impl.hpp     | 19 ++++++++++++-------
 src/mlpack/core/tree/rectangle_tree/traits.hpp        |  5 +++++
 src/mlpack/core/tree/rectangle_tree/typedef.hpp       |  5 +++++
 .../rectangle_tree/x_tree_auxiliary_information.hpp   |  5 +++++
 src/mlpack/core/tree/rectangle_tree/x_tree_split.hpp  |  5 +++++
 .../core/tree/rectangle_tree/x_tree_split_impl.hpp    |  5 +++++
 src/mlpack/core/tree/space_split/hyperplane.hpp       |  5 +++++
 src/mlpack/core/tree/space_split/mean_space_split.hpp |  5 +++++
 .../core/tree/space_split/mean_space_split_impl.hpp   |  5 +++++
 .../core/tree/space_split/midpoint_space_split.hpp    |  5 +++++
 .../tree/space_split/midpoint_space_split_impl.hpp    |  5 +++++
 .../core/tree/space_split/projection_vector.hpp       |  5 +++++
 src/mlpack/core/tree/space_split/space_split.hpp      |  5 +++++
 src/mlpack/core/tree/space_split/space_split_impl.hpp |  5 +++++
 src/mlpack/core/tree/spill_tree.hpp                   |  5 +++++
 src/mlpack/core/tree/spill_tree/is_spill_tree.hpp     |  5 +++++
 .../tree/spill_tree/spill_dual_tree_traverser.hpp     |  5 +++++
 .../spill_tree/spill_dual_tree_traverser_impl.hpp     |  5 +++++
 .../tree/spill_tree/spill_single_tree_traverser.hpp   |  5 +++++
 .../spill_tree/spill_single_tree_traverser_impl.hpp   |  5 +++++
 src/mlpack/core/tree/spill_tree/spill_tree.hpp        |  5 +++++
 src/mlpack/core/tree/spill_tree/spill_tree_impl.hpp   |  5 +++++
 src/mlpack/core/tree/spill_tree/traits.hpp            |  5 +++++
 src/mlpack/core/tree/spill_tree/typedef.hpp           |  5 +++++
 src/mlpack/core/tree/statistic.hpp                    |  5 +++++
 src/mlpack/core/tree/traversal_info.hpp               |  5 +++++
 src/mlpack/core/tree/tree_traits.hpp                  |  5 +++++
 src/mlpack/core/util/arma_config_check.hpp            |  5 +++++
 src/mlpack/core/util/arma_traits.hpp                  |  5 +++++
 src/mlpack/core/util/backtrace.cpp                    |  5 +++++
 src/mlpack/core/util/backtrace.hpp                    |  5 +++++
 src/mlpack/core/util/cli.cpp                          |  5 +++++
 src/mlpack/core/util/cli.hpp                          |  5 +++++
 src/mlpack/core/util/cli_deleter.cpp                  |  5 +++++
 src/mlpack/core/util/cli_deleter.hpp                  |  5 +++++
 src/mlpack/core/util/cli_impl.hpp                     |  5 +++++
 src/mlpack/core/util/deprecated.hpp                   |  5 +++++
 src/mlpack/core/util/log.cpp                          |  5 +++++
 src/mlpack/core/util/log.hpp                          |  5 +++++
 src/mlpack/core/util/nulloutstream.hpp                |  5 +++++
 src/mlpack/core/util/option.cpp                       |  5 +++++
 src/mlpack/core/util/option.hpp                       |  5 +++++
 src/mlpack/core/util/option_impl.hpp                  |  5 +++++
 src/mlpack/core/util/param.hpp                        |  5 +++++
 src/mlpack/core/util/prefixedoutstream.cpp            |  5 +++++
 src/mlpack/core/util/prefixedoutstream.hpp            |  5 +++++
 src/mlpack/core/util/prefixedoutstream_impl.hpp       |  5 +++++
 src/mlpack/core/util/sfinae_utility.hpp               |  5 +++++
 src/mlpack/core/util/singletons.cpp                   |  5 +++++
 src/mlpack/core/util/singletons.hpp                   |  5 +++++
 src/mlpack/core/util/timers.cpp                       |  5 +++++
 src/mlpack/core/util/timers.hpp                       |  5 +++++
 src/mlpack/core/util/version.cpp                      |  5 +++++
 src/mlpack/core/util/version.hpp                      |  5 +++++
 src/mlpack/tests/ub_tree_test.cpp                     | 16 +++++++++++-----
 257 files changed, 1319 insertions(+), 33 deletions(-)

diff --git a/src/mlpack/core/data/binarize.hpp b/src/mlpack/core/data/binarize.hpp
index c76ec56..fdc3226 100644
--- a/src/mlpack/core/data/binarize.hpp
+++ b/src/mlpack/core/data/binarize.hpp
@@ -4,6 +4,11 @@
  *
  * Defines Binarize(), a utility function, sets values to 0 or 1
  * to a given threshold.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_BINARIZE_HPP
 #define MLPACK_CORE_DATA_BINARIZE_HPP
diff --git a/src/mlpack/core/data/dataset_mapper.hpp b/src/mlpack/core/data/dataset_mapper.hpp
index f7f12d2..bb243f0 100644
--- a/src/mlpack/core/data/dataset_mapper.hpp
+++ b/src/mlpack/core/data/dataset_mapper.hpp
@@ -6,6 +6,11 @@
  * Defines the DatasetMapper class, which holds information about a dataset.
  * This is useful when the dataset contains categorical non-numeric features
  * that needs to be mapped to categorical numeric features.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_DATASET_INFO_HPP
 #define MLPACK_CORE_DATA_DATASET_INFO_HPP
diff --git a/src/mlpack/core/data/dataset_mapper_impl.hpp b/src/mlpack/core/data/dataset_mapper_impl.hpp
index 6b291e2..854acd7 100644
--- a/src/mlpack/core/data/dataset_mapper_impl.hpp
+++ b/src/mlpack/core/data/dataset_mapper_impl.hpp
@@ -4,6 +4,11 @@
  * @author Keon Kim
  *
  * An implementation of the DatasetMapper<PolicyType> class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_DATASET_INFO_IMPL_HPP
 #define MLPACK_CORE_DATA_DATASET_INFO_IMPL_HPP
diff --git a/src/mlpack/core/data/extension.hpp b/src/mlpack/core/data/extension.hpp
index 516a41c..4bf8b6b 100644
--- a/src/mlpack/core/data/extension.hpp
+++ b/src/mlpack/core/data/extension.hpp
@@ -4,6 +4,11 @@
  *
  * Given a filename, extract its extension.  This is used by data::Load() and
  * data::Save().
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_EXTENSION_HPP
 #define MLPACK_CORE_DATA_EXTENSION_HPP
diff --git a/src/mlpack/core/data/format.hpp b/src/mlpack/core/data/format.hpp
index 9e0a085..527e214 100644
--- a/src/mlpack/core/data/format.hpp
+++ b/src/mlpack/core/data/format.hpp
@@ -4,6 +4,11 @@
  *
  * Define the formats that can be used by mlpack's Load() and Save() mechanisms
  * via boost::serialization.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_FORMATS_HPP
 #define MLPACK_CORE_DATA_FORMATS_HPP
diff --git a/src/mlpack/core/data/imputation_methods/custom_imputation.hpp b/src/mlpack/core/data/imputation_methods/custom_imputation.hpp
index c8674a3..ea9e18d 100644
--- a/src/mlpack/core/data/imputation_methods/custom_imputation.hpp
+++ b/src/mlpack/core/data/imputation_methods/custom_imputation.hpp
@@ -3,6 +3,11 @@
  * @author Keon Kim
  *
  * Definition and Implementation of the empty CustomImputation class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_IMPUTE_STRATEGIES_CUSTOM_IMPUTATION_HPP
 #define MLPACK_CORE_DATA_IMPUTE_STRATEGIES_CUSTOM_IMPUTATION_HPP
diff --git a/src/mlpack/core/data/imputation_methods/listwise_deletion.hpp b/src/mlpack/core/data/imputation_methods/listwise_deletion.hpp
index 36eeeeb..03fece4 100644
--- a/src/mlpack/core/data/imputation_methods/listwise_deletion.hpp
+++ b/src/mlpack/core/data/imputation_methods/listwise_deletion.hpp
@@ -3,6 +3,11 @@
  * @author Keon Kim
  *
  * Definition and Implementation of the empty ListwiseDeletion class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_IMPUTE_STRATEGIES_LISTWISE_DELETION_HPP
 #define MLPACK_CORE_DATA_IMPUTE_STRATEGIES_LISTWISE_DELETION_HPP
diff --git a/src/mlpack/core/data/imputation_methods/mean_imputation.hpp b/src/mlpack/core/data/imputation_methods/mean_imputation.hpp
index e7a955e..641e6f6 100644
--- a/src/mlpack/core/data/imputation_methods/mean_imputation.hpp
+++ b/src/mlpack/core/data/imputation_methods/mean_imputation.hpp
@@ -3,6 +3,11 @@
  * @author Keon Kim
  *
  * Definition and Implementation of the MeanImputation class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_IMPUTE_STRATEGIES_MEAN_IMPUTATION_HPP
 #define MLPACK_CORE_DATA_IMPUTE_STRATEGIES_MEAN_IMPUTATION_HPP
diff --git a/src/mlpack/core/data/imputation_methods/median_imputation.hpp b/src/mlpack/core/data/imputation_methods/median_imputation.hpp
index 828d22a..08b9e89 100644
--- a/src/mlpack/core/data/imputation_methods/median_imputation.hpp
+++ b/src/mlpack/core/data/imputation_methods/median_imputation.hpp
@@ -3,6 +3,11 @@
  * @author Keon Kim
  *
  * Definition and Implementation of the MedianImputation class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_IMPUTE_STRATEGIES_MEDIAN_IMPUTATION_HPP
 #define MLPACK_CORE_DATA_IMPUTE_STRATEGIES_MEDIAN_IMPUTATION_HPP
diff --git a/src/mlpack/core/data/imputer.hpp b/src/mlpack/core/data/imputer.hpp
index fdc47b7..6991b7b 100644
--- a/src/mlpack/core/data/imputer.hpp
+++ b/src/mlpack/core/data/imputer.hpp
@@ -4,6 +4,11 @@
  *
  * Defines Imputer class a utility function to replace missing variables in a
  * dataset.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_IMPUTER_HPP
 #define MLPACK_CORE_DATA_IMPUTER_HPP
diff --git a/src/mlpack/core/data/load.hpp b/src/mlpack/core/data/load.hpp
index 40d3834..7302957 100644
--- a/src/mlpack/core/data/load.hpp
+++ b/src/mlpack/core/data/load.hpp
@@ -5,6 +5,11 @@
  * Load an Armadillo matrix from file.  This is necessary because Armadillo does
  * not transpose matrices on input, and it allows us to give better error
  * output.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_LOAD_HPP
 #define MLPACK_CORE_DATA_LOAD_HPP
diff --git a/src/mlpack/core/data/load_arff.hpp b/src/mlpack/core/data/load_arff.hpp
index ff6c431..00b23da 100644
--- a/src/mlpack/core/data/load_arff.hpp
+++ b/src/mlpack/core/data/load_arff.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Load an ARFF dataset.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_LOAD_ARFF_HPP
 #define MLPACK_CORE_DATA_LOAD_ARFF_HPP
diff --git a/src/mlpack/core/data/load_arff_impl.hpp b/src/mlpack/core/data/load_arff_impl.hpp
index 71ccea6..d34d2cd 100644
--- a/src/mlpack/core/data/load_arff_impl.hpp
+++ b/src/mlpack/core/data/load_arff_impl.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Load an ARFF dataset.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_LOAD_ARFF_IMPL_HPP
 #define MLPACK_CORE_DATA_LOAD_ARFF_IMPL_HPP
diff --git a/src/mlpack/core/data/load_impl.hpp b/src/mlpack/core/data/load_impl.hpp
index 65a07d5..74f77ea 100644
--- a/src/mlpack/core/data/load_impl.hpp
+++ b/src/mlpack/core/data/load_impl.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Implementation of templatized load() function defined in load.hpp.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_LOAD_IMPL_HPP
 #define MLPACK_CORE_DATA_LOAD_IMPL_HPP
diff --git a/src/mlpack/core/data/map_policies/datatype.hpp b/src/mlpack/core/data/map_policies/datatype.hpp
index 3a3b1ac..f6cffc7 100644
--- a/src/mlpack/core/data/map_policies/datatype.hpp
+++ b/src/mlpack/core/data/map_policies/datatype.hpp
@@ -2,6 +2,11 @@
  * @file missing_policy.hpp
  * @author Keon Kim
  *
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_MAP_POLICIES_DATATYPE_HPP
 #define MLPACK_CORE_DATA_MAP_POLICIES_DATATYPE_HPP
diff --git a/src/mlpack/core/data/map_policies/increment_policy.hpp b/src/mlpack/core/data/map_policies/increment_policy.hpp
index 4ff7341..e0cbaf2 100644
--- a/src/mlpack/core/data/map_policies/increment_policy.hpp
+++ b/src/mlpack/core/data/map_policies/increment_policy.hpp
@@ -3,6 +3,11 @@
  * @author Keon Kim
  *
  * Default increment maping policy for dataset info.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_MAP_POLICIES_INCREMENT_POLICY_HPP
 #define MLPACK_CORE_DATA_MAP_POLICIES_INCREMENT_POLICY_HPP
diff --git a/src/mlpack/core/data/map_policies/missing_policy.hpp b/src/mlpack/core/data/map_policies/missing_policy.hpp
index 2ac3664..1900af0 100644
--- a/src/mlpack/core/data/map_policies/missing_policy.hpp
+++ b/src/mlpack/core/data/map_policies/missing_policy.hpp
@@ -3,6 +3,11 @@
  * @author Keon Kim
  *
  * Missing map policy for dataset info.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_MAP_POLICIES_MISSING_POLICY_HPP
 #define MLPACK_CORE_DATA_MAP_POLICIES_MISSING_POLICY_HPP
diff --git a/src/mlpack/core/data/normalize_labels.hpp b/src/mlpack/core/data/normalize_labels.hpp
index ee39dee..9dba859 100644
--- a/src/mlpack/core/data/normalize_labels.hpp
+++ b/src/mlpack/core/data/normalize_labels.hpp
@@ -5,6 +5,11 @@
  * Often labels are not given as {0, 1, 2, ...} but instead {1, 2, ...} or even
  * {-1, 1} or otherwise.  The purpose of this function is to normalize labels to
  * {0, 1, 2, ...} and provide a mapping back to those labels.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_NORMALIZE_LABELS_HPP
 #define MLPACK_CORE_DATA_NORMALIZE_LABELS_HPP
diff --git a/src/mlpack/core/data/normalize_labels_impl.hpp b/src/mlpack/core/data/normalize_labels_impl.hpp
index 55b0dec..cfa043d 100644
--- a/src/mlpack/core/data/normalize_labels_impl.hpp
+++ b/src/mlpack/core/data/normalize_labels_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of label normalization functions; these are useful for mapping
  * labels to the range [0, n).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_NORMALIZE_LABELS_IMPL_HPP
 #define MLPACK_CORE_DATA_NORMALIZE_LABELS_IMPL_HPP
diff --git a/src/mlpack/core/data/save.hpp b/src/mlpack/core/data/save.hpp
index 0836ed6..52c1b57 100644
--- a/src/mlpack/core/data/save.hpp
+++ b/src/mlpack/core/data/save.hpp
@@ -5,6 +5,11 @@
  * Save an Armadillo matrix to file.  This is necessary because Armadillo does
  * not transpose matrices upon saving, and it allows us to give better error
  * output.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_SAVE_HPP
 #define MLPACK_CORE_DATA_SAVE_HPP
diff --git a/src/mlpack/core/data/save_impl.hpp b/src/mlpack/core/data/save_impl.hpp
index 4bccdea..c9e70d7 100644
--- a/src/mlpack/core/data/save_impl.hpp
+++ b/src/mlpack/core/data/save_impl.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Implementation of save functionality.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_SAVE_IMPL_HPP
 #define MLPACK_CORE_DATA_SAVE_IMPL_HPP
diff --git a/src/mlpack/core/data/serialization_shim.hpp b/src/mlpack/core/data/serialization_shim.hpp
index a8eaa74..5865a7a 100644
--- a/src/mlpack/core/data/serialization_shim.hpp
+++ b/src/mlpack/core/data/serialization_shim.hpp
@@ -7,6 +7,11 @@
  *
  * This allows our mlpack naming conventions to remain intact, and only costs a
  * small amount of ridiculous template metaprogramming.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_UTIL_SERIALIZATION_SHIM_HPP
 #define MLPACK_CORE_UTIL_SERIALIZATION_SHIM_HPP
diff --git a/src/mlpack/core/data/serialization_template_version.hpp b/src/mlpack/core/data/serialization_template_version.hpp
index 6b617a8..78e1c5c 100644
--- a/src/mlpack/core/data/serialization_template_version.hpp
+++ b/src/mlpack/core/data/serialization_template_version.hpp
@@ -4,6 +4,11 @@
  *
  * A better version of the BOOST_CLASS_VERSION() macro that supports templated
  * classes.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_SERIALIZATION_TEMPLATE_VERSION_HPP
 #define MLPACK_CORE_DATA_SERIALIZATION_TEMPLATE_VERSION_HPP
diff --git a/src/mlpack/core/data/split_data.hpp b/src/mlpack/core/data/split_data.hpp
index d02f6c6..fdac9cb 100644
--- a/src/mlpack/core/data/split_data.hpp
+++ b/src/mlpack/core/data/split_data.hpp
@@ -4,6 +4,11 @@
  *
  * Defines Split(), a utility function to split a dataset into a
  * training set and a test set.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DATA_SPLIT_DATA_HPP
 #define MLPACK_CORE_DATA_SPLIT_DATA_HPP
diff --git a/src/mlpack/core/dists/discrete_distribution.cpp b/src/mlpack/core/dists/discrete_distribution.cpp
index ce0faf2..b93004e 100644
--- a/src/mlpack/core/dists/discrete_distribution.cpp
+++ b/src/mlpack/core/dists/discrete_distribution.cpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Implementation of DiscreteDistribution probability distribution.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "discrete_distribution.hpp"
 
diff --git a/src/mlpack/core/dists/discrete_distribution.hpp b/src/mlpack/core/dists/discrete_distribution.hpp
index e384637..cfa4bc7 100644
--- a/src/mlpack/core/dists/discrete_distribution.hpp
+++ b/src/mlpack/core/dists/discrete_distribution.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of the discrete distribution, where each discrete observation
  * has a given probability.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DISTRIBUTIONS_DISCRETE_DISTRIBUTION_HPP
 #define MLPACK_CORE_DISTRIBUTIONS_DISCRETE_DISTRIBUTION_HPP
diff --git a/src/mlpack/core/dists/gamma_distribution.cpp b/src/mlpack/core/dists/gamma_distribution.cpp
index 22c858a..1802b88 100644
--- a/src/mlpack/core/dists/gamma_distribution.cpp
+++ b/src/mlpack/core/dists/gamma_distribution.cpp
@@ -3,6 +3,11 @@
  * @author Yannis Mentekidis
  *
  * Implementation of the methods of GammaDistribution.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "gamma_distribution.hpp"
 #include <boost/math/special_functions/digamma.hpp>
diff --git a/src/mlpack/core/dists/gamma_distribution.hpp b/src/mlpack/core/dists/gamma_distribution.hpp
index a64c55c..718cd7f 100644
--- a/src/mlpack/core/dists/gamma_distribution.hpp
+++ b/src/mlpack/core/dists/gamma_distribution.hpp
@@ -9,6 +9,11 @@
  *
  * Based on "Estimating a Gamma Distribution" by Thomas P. Minka:
  * research.microsoft.com/~minka/papers/minka-gamma.pdf
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef _MLPACK_CORE_DISTRIBUTIONS_GAMMA_DISTRIBUTION_HPP
 #define _MLPACK_CORE_DISTRIBUTIONS_GAMMA_DISTRIBUTION_HPP
diff --git a/src/mlpack/core/dists/gaussian_distribution.cpp b/src/mlpack/core/dists/gaussian_distribution.cpp
index b8d1b04..bfa1734 100644
--- a/src/mlpack/core/dists/gaussian_distribution.cpp
+++ b/src/mlpack/core/dists/gaussian_distribution.cpp
@@ -4,6 +4,11 @@
  * @author Michael Fox
  *
  * Implementation of Gaussian distribution class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "gaussian_distribution.hpp"
 #include <mlpack/methods/gmm/positive_definite_constraint.hpp>
diff --git a/src/mlpack/core/dists/gaussian_distribution.hpp b/src/mlpack/core/dists/gaussian_distribution.hpp
index 5ca9696..8768b19 100644
--- a/src/mlpack/core/dists/gaussian_distribution.hpp
+++ b/src/mlpack/core/dists/gaussian_distribution.hpp
@@ -4,6 +4,11 @@
  * @author Michael Fox
  *
  * Implementation of the Gaussian distribution.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DISTRIBUTIONS_GAUSSIAN_DISTRIBUTION_HPP
 #define MLPACK_CORE_DISTRIBUTIONS_GAUSSIAN_DISTRIBUTION_HPP
diff --git a/src/mlpack/core/dists/laplace_distribution.cpp b/src/mlpack/core/dists/laplace_distribution.cpp
index 213c825..b01654c 100644
--- a/src/mlpack/core/dists/laplace_distribution.cpp
+++ b/src/mlpack/core/dists/laplace_distribution.cpp
@@ -3,6 +3,11 @@
  * @author Zhihao Lou
  *
  * Implementation of Laplace distribution.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include <mlpack/core.hpp>
 
diff --git a/src/mlpack/core/dists/laplace_distribution.hpp b/src/mlpack/core/dists/laplace_distribution.hpp
index 6352e63..e7a59aa 100644
--- a/src/mlpack/core/dists/laplace_distribution.hpp
+++ b/src/mlpack/core/dists/laplace_distribution.hpp
@@ -3,6 +3,11 @@
  * @author Zhihao Lou
  *
  * Laplace (double exponential) distribution used in SA.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 
 #ifndef MLPACK_CORE_DISTRIBUTIONS_LAPLACE_DISTRIBUTION_HPP
diff --git a/src/mlpack/core/dists/regression_distribution.cpp b/src/mlpack/core/dists/regression_distribution.cpp
index ff56876..e306bc8 100644
--- a/src/mlpack/core/dists/regression_distribution.cpp
+++ b/src/mlpack/core/dists/regression_distribution.cpp
@@ -3,6 +3,11 @@
  * @author Michael Fox
  *
  * Implementation of conditional Gaussian distribution for HMM regression (HMMR)
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 
 #include "regression_distribution.hpp"
diff --git a/src/mlpack/core/dists/regression_distribution.hpp b/src/mlpack/core/dists/regression_distribution.hpp
index 22377e3..4519e17 100644
--- a/src/mlpack/core/dists/regression_distribution.hpp
+++ b/src/mlpack/core/dists/regression_distribution.hpp
@@ -3,6 +3,11 @@
  * @author Michael Fox
  *
  * Implementation of conditional Gaussian distribution for HMM regression (HMMR)
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_DISTRIBUTIONS_REGRESSION_DISTRIBUTION_HPP
 #define MLPACK_CORE_DISTRIBUTIONS_REGRESSION_DISTRIBUTION_HPP
diff --git a/src/mlpack/core/kernels/cosine_distance.hpp b/src/mlpack/core/kernels/cosine_distance.hpp
index 1e8fc90..40a468a 100644
--- a/src/mlpack/core/kernels/cosine_distance.hpp
+++ b/src/mlpack/core/kernels/cosine_distance.hpp
@@ -4,6 +4,11 @@
  *
  * This implements the cosine distance (or cosine similarity) between two
  * vectors, which is a measure of the angle between the two vectors.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_KERNELS_COSINE_DISTANCE_HPP
 #define MLPACK_CORE_KERNELS_COSINE_DISTANCE_HPP
diff --git a/src/mlpack/core/kernels/cosine_distance_impl.hpp b/src/mlpack/core/kernels/cosine_distance_impl.hpp
index 8ec271b..2cb10ff 100644
--- a/src/mlpack/core/kernels/cosine_distance_impl.hpp
+++ b/src/mlpack/core/kernels/cosine_distance_impl.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * This implements the cosine distance.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_KERNELS_COSINE_DISTANCE_IMPL_HPP
 #define MLPACK_CORE_KERNELS_COSINE_DISTANCE_IMPL_HPP
diff --git a/src/mlpack/core/kernels/epanechnikov_kernel.cpp b/src/mlpack/core/kernels/epanechnikov_kernel.cpp
index 9f9bc96..efe5cc2 100644
--- a/src/mlpack/core/kernels/epanechnikov_kernel.cpp
+++ b/src/mlpack/core/kernels/epanechnikov_kernel.cpp
@@ -3,6 +3,11 @@
  * @author Neil Slagle
  *
  * Implementation of non-template Epanechnikov kernels.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "epanechnikov_kernel.hpp"
 
diff --git a/src/mlpack/core/kernels/epanechnikov_kernel.hpp b/src/mlpack/core/kernels/epanechnikov_kernel.hpp
index 3616ce6..7f4c404 100644
--- a/src/mlpack/core/kernels/epanechnikov_kernel.hpp
+++ b/src/mlpack/core/kernels/epanechnikov_kernel.hpp
@@ -3,6 +3,11 @@
  * @author Neil Slagle
  *
  * Definition of the Epanechnikov kernel.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_KERNELS_EPANECHNIKOV_KERNEL_HPP
 #define MLPACK_CORE_KERNELS_EPANECHNIKOV_KERNEL_HPP
diff --git a/src/mlpack/core/kernels/epanechnikov_kernel_impl.hpp b/src/mlpack/core/kernels/epanechnikov_kernel_impl.hpp
index e5836d7..d4226bb 100644
--- a/src/mlpack/core/kernels/epanechnikov_kernel_impl.hpp
+++ b/src/mlpack/core/kernels/epanechnikov_kernel_impl.hpp
@@ -3,6 +3,11 @@
  * @author Neil Slagle
  *
  * Implementation of template-based Epanechnikov kernel functions.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_KERNELS_EPANECHNIKOV_KERNEL_IMPL_HPP
 #define MLPACK_CORE_KERNELS_EPANECHNIKOV_KERNEL_IMPL_HPP
diff --git a/src/mlpack/core/kernels/example_kernel.hpp b/src/mlpack/core/kernels/example_kernel.hpp
index 8759971..f715da0 100644
--- a/src/mlpack/core/kernels/example_kernel.hpp
+++ b/src/mlpack/core/kernels/example_kernel.hpp
@@ -4,6 +4,11 @@
  *
  * This is an example kernel.  If you are making your own kernel, follow the
  * outline specified in this file.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_KERNELS_EXAMPLE_KERNEL_HPP
 #define MLPACK_CORE_KERNELS_EXAMPLE_KERNEL_HPP
diff --git a/src/mlpack/core/kernels/gaussian_kernel.hpp b/src/mlpack/core/kernels/gaussian_kernel.hpp
index 0f0e5f0..9b29539 100644
--- a/src/mlpack/core/kernels/gaussian_kernel.hpp
+++ b/src/mlpack/core/kernels/gaussian_kernel.hpp
@@ -5,6 +5,11 @@
  * @author Ryan Curtin
  *
  * Implementation of the Gaussian kernel (GaussianKernel).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_KERNELS_GAUSSIAN_KERNEL_HPP
 #define MLPACK_CORE_KERNELS_GAUSSIAN_KERNEL_HPP
diff --git a/src/mlpack/core/kernels/hyperbolic_tangent_kernel.hpp b/src/mlpack/core/kernels/hyperbolic_tangent_kernel.hpp
index 7c682bb..fdc1f3b 100644
--- a/src/mlpack/core/kernels/hyperbolic_tangent_kernel.hpp
+++ b/src/mlpack/core/kernels/hyperbolic_tangent_kernel.hpp
@@ -3,6 +3,11 @@
  * @author Ajinkya Kale <kaleajinkya at gmail.com>
  *
  * Implementation of the hyperbolic tangent kernel.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_KERNELS_HYPERBOLIC_TANGENT_KERNEL_HPP
 #define MLPACK_CORE_KERNELS_HYPERBOLIC_TANGENT_KERNEL_HPP
diff --git a/src/mlpack/core/kernels/kernel_traits.hpp b/src/mlpack/core/kernels/kernel_traits.hpp
index 080efbe..2636f69 100644
--- a/src/mlpack/core/kernels/kernel_traits.hpp
+++ b/src/mlpack/core/kernels/kernel_traits.hpp
@@ -4,6 +4,11 @@
  *
  * This provides the KernelTraits class, a template class to get information
  * about various kernels.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_KERNELS_KERNEL_TRAITS_HPP
 #define MLPACK_CORE_KERNELS_KERNEL_TRAITS_HPP
diff --git a/src/mlpack/core/kernels/laplacian_kernel.hpp b/src/mlpack/core/kernels/laplacian_kernel.hpp
index 148d32b..1f85f8b 100644
--- a/src/mlpack/core/kernels/laplacian_kernel.hpp
+++ b/src/mlpack/core/kernels/laplacian_kernel.hpp
@@ -3,6 +3,11 @@
  * @author Ajinkya Kale <kaleajinkya at gmail.com>
  *
  * Implementation of the Laplacian kernel (LaplacianKernel).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_KERNELS_LAPLACIAN_KERNEL_HPP
 #define MLPACK_CORE_KERNELS_LAPLACIAN_KERNEL_HPP
diff --git a/src/mlpack/core/kernels/linear_kernel.hpp b/src/mlpack/core/kernels/linear_kernel.hpp
index 5c48ba6..7f586bb 100644
--- a/src/mlpack/core/kernels/linear_kernel.hpp
+++ b/src/mlpack/core/kernels/linear_kernel.hpp
@@ -5,6 +5,11 @@
  * @author Ryan Curtin
  *
  * Implementation of the linear kernel (just the standard dot product).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_KERNELS_LINEAR_KERNEL_HPP
 #define MLPACK_CORE_KERNELS_LINEAR_KERNEL_HPP
diff --git a/src/mlpack/core/kernels/polynomial_kernel.hpp b/src/mlpack/core/kernels/polynomial_kernel.hpp
index f06a48e..5d7902b 100644
--- a/src/mlpack/core/kernels/polynomial_kernel.hpp
+++ b/src/mlpack/core/kernels/polynomial_kernel.hpp
@@ -3,6 +3,11 @@
  * @author Ajinkya Kale <kaleajinkya at gmail.com>
  *
  * Implementation of the polynomial kernel (just the standard dot product).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_KERNELS_POLYNOMIAL_KERNEL_HPP
 #define MLPACK_CORE_KERNELS_POLYNOMIAL_KERNEL_HPP
diff --git a/src/mlpack/core/kernels/pspectrum_string_kernel.cpp b/src/mlpack/core/kernels/pspectrum_string_kernel.cpp
index c4be594..908c12f 100644
--- a/src/mlpack/core/kernels/pspectrum_string_kernel.cpp
+++ b/src/mlpack/core/kernels/pspectrum_string_kernel.cpp
@@ -7,6 +7,11 @@
  * one-dimensional data matrix (data vector) to FastMKS which stores indices of
  * strings; then, the actual strings are given to the PSpectrumStringKernel at
  * construction time, and the kernel knows to map the indices to actual strings.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "pspectrum_string_kernel.hpp"
 
diff --git a/src/mlpack/core/kernels/pspectrum_string_kernel.hpp b/src/mlpack/core/kernels/pspectrum_string_kernel.hpp
index 460dd03..14dc3c9 100644
--- a/src/mlpack/core/kernels/pspectrum_string_kernel.hpp
+++ b/src/mlpack/core/kernels/pspectrum_string_kernel.hpp
@@ -7,6 +7,11 @@
  * one-dimensional data matrix (data vector) to FastMKS which stores indices of
  * strings; then, the actual strings are given to the PSpectrumStringKernel at
  * construction time, and the kernel knows to map the indices to actual strings.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_KERNELS_PSPECTRUM_STRING_KERNEL_HPP
 #define MLPACK_CORE_KERNELS_PSPECTRUM_STRING_KERNEL_HPP
diff --git a/src/mlpack/core/kernels/pspectrum_string_kernel_impl.hpp b/src/mlpack/core/kernels/pspectrum_string_kernel_impl.hpp
index 19d5f09..6ae2cab 100644
--- a/src/mlpack/core/kernels/pspectrum_string_kernel_impl.hpp
+++ b/src/mlpack/core/kernels/pspectrum_string_kernel_impl.hpp
@@ -7,6 +7,11 @@
  * one-dimensional data matrix (data vector) to FastMKS which stores indices of
  * strings; then, the actual strings are given to the PSpectrumStringKernel at
  * construction time, and the kernel knows to map the indices to actual strings.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_KERNELS_PSPECTRUM_STRING_KERNEL_IMPL_HPP
 #define MLPACK_CORE_KERNELS_PSPECTRUM_STRING_KERNEL_IMPL_HPP
diff --git a/src/mlpack/core/kernels/spherical_kernel.hpp b/src/mlpack/core/kernels/spherical_kernel.hpp
index 2fceda9..c6baf2e 100644
--- a/src/mlpack/core/kernels/spherical_kernel.hpp
+++ b/src/mlpack/core/kernels/spherical_kernel.hpp
@@ -1,6 +1,11 @@
 /**
  * @file spherical_kernel.hpp
  * @author Neil Slagle
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_KERNELS_SPHERICAL_KERNEL_HPP
 #define MLPACK_CORE_KERNELS_SPHERICAL_KERNEL_HPP
diff --git a/src/mlpack/core/kernels/triangular_kernel.hpp b/src/mlpack/core/kernels/triangular_kernel.hpp
index 998fe9b..022ae4f 100644
--- a/src/mlpack/core/kernels/triangular_kernel.hpp
+++ b/src/mlpack/core/kernels/triangular_kernel.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Definition and implementation of the trivially simple triangular kernel.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_KERNELS_TRIANGULAR_KERNEL_HPP
 #define MLPACK_CORE_KERNELS_TRIANGULAR_KERNEL_HPP
diff --git a/src/mlpack/core/math/clamp.hpp b/src/mlpack/core/math/clamp.hpp
index 9e7a5df..bc87362 100644
--- a/src/mlpack/core/math/clamp.hpp
+++ b/src/mlpack/core/math/clamp.hpp
@@ -2,6 +2,11 @@
  * @file clamp.hpp
  *
  * Miscellaneous math clamping routines.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_MATH_CLAMP_HPP
 #define MLPACK_CORE_MATH_CLAMP_HPP
diff --git a/src/mlpack/core/math/columns_to_blocks.cpp b/src/mlpack/core/math/columns_to_blocks.cpp
index 68ae22f..4cdab32 100644
--- a/src/mlpack/core/math/columns_to_blocks.cpp
+++ b/src/mlpack/core/math/columns_to_blocks.cpp
@@ -3,6 +3,11 @@
  * @author Tham Ngap Wei
  *
  * Implementation of the ColumnsToBlocks class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "columns_to_blocks.hpp"
 
diff --git a/src/mlpack/core/math/columns_to_blocks.hpp b/src/mlpack/core/math/columns_to_blocks.hpp
index 4d604aa..5ba6d95 100644
--- a/src/mlpack/core/math/columns_to_blocks.hpp
+++ b/src/mlpack/core/math/columns_to_blocks.hpp
@@ -4,6 +4,11 @@
  *
  * A helper class that could be useful for visualizing the output of
  * MaximalInputs() and possibly other things.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_METHODS_NN_COLUMNS_TO_BLOCKS_HPP
 #define MLPACK_METHODS_NN_COLUMNS_TO_BLOCKS_HPP
diff --git a/src/mlpack/core/math/lin_alg.cpp b/src/mlpack/core/math/lin_alg.cpp
index b6d5947..0d8d6de 100644
--- a/src/mlpack/core/math/lin_alg.cpp
+++ b/src/mlpack/core/math/lin_alg.cpp
@@ -3,6 +3,11 @@
  * @author Nishant Mehta
  *
  * Linear algebra utilities.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "lin_alg.hpp"
 #include <mlpack/core.hpp>
diff --git a/src/mlpack/core/math/lin_alg.hpp b/src/mlpack/core/math/lin_alg.hpp
index 63b5bf8..6552dc8 100644
--- a/src/mlpack/core/math/lin_alg.hpp
+++ b/src/mlpack/core/math/lin_alg.hpp
@@ -3,6 +3,11 @@
  * @author Nishant Mehta
  *
  * Linear algebra utilities.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_MATH_LIN_ALG_HPP
 #define MLPACK_CORE_MATH_LIN_ALG_HPP
diff --git a/src/mlpack/core/math/lin_alg_impl.hpp b/src/mlpack/core/math/lin_alg_impl.hpp
index 9396197..c22684f 100644
--- a/src/mlpack/core/math/lin_alg_impl.hpp
+++ b/src/mlpack/core/math/lin_alg_impl.hpp
@@ -1,6 +1,11 @@
 /**
  * @file lin_alg_impl.hpp
  * @author Stephen Tu
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_MATH_LIN_ALG_IMPL_HPP
 #define MLPACK_CORE_MATH_LIN_ALG_IMPL_HPP
diff --git a/src/mlpack/core/math/random.cpp b/src/mlpack/core/math/random.cpp
index d83a9bf..9e275f3 100644
--- a/src/mlpack/core/math/random.cpp
+++ b/src/mlpack/core/math/random.cpp
@@ -2,6 +2,11 @@
  * @file random.cpp
  *
  * Declarations of global random number generators.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include <random>
 #include <mlpack/mlpack_export.hpp>
diff --git a/src/mlpack/core/math/random.hpp b/src/mlpack/core/math/random.hpp
index 1df5b01..ffc0028 100644
--- a/src/mlpack/core/math/random.hpp
+++ b/src/mlpack/core/math/random.hpp
@@ -2,6 +2,11 @@
  * @file random.hpp
  *
  * Miscellaneous math random-related routines.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_MATH_RANDOM_HPP
 #define MLPACK_CORE_MATH_RANDOM_HPP
diff --git a/src/mlpack/core/math/random_basis.cpp b/src/mlpack/core/math/random_basis.cpp
index a1b56c0..bf4e412 100644
--- a/src/mlpack/core/math/random_basis.cpp
+++ b/src/mlpack/core/math/random_basis.cpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Generate a random d-dimensional basis.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "random_basis.hpp"
 
diff --git a/src/mlpack/core/math/random_basis.hpp b/src/mlpack/core/math/random_basis.hpp
index e5f407b..a0b21dc 100644
--- a/src/mlpack/core/math/random_basis.hpp
+++ b/src/mlpack/core/math/random_basis.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Generate a random d-dimensional basis.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_MATH_RANDOM_BASIS_HPP
 #define MLPACK_CORE_MATH_RANDOM_BASIS_HPP
diff --git a/src/mlpack/core/math/range.hpp b/src/mlpack/core/math/range.hpp
index 5b03c7f..e0c0e8d 100644
--- a/src/mlpack/core/math/range.hpp
+++ b/src/mlpack/core/math/range.hpp
@@ -3,6 +3,11 @@
  *
  * Definition of the Range class, which represents a simple range with a lower
  * and upper bound.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_MATH_RANGE_HPP
 #define MLPACK_CORE_MATH_RANGE_HPP
diff --git a/src/mlpack/core/math/range_impl.hpp b/src/mlpack/core/math/range_impl.hpp
index deeb4a8..be15b1e 100644
--- a/src/mlpack/core/math/range_impl.hpp
+++ b/src/mlpack/core/math/range_impl.hpp
@@ -2,6 +2,11 @@
  * @file range_impl.hpp
  *
  * Implementation of the (inlined) Range class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_MATH_RANGE_IMPL_HPP
 #define MLPACK_CORE_MATH_RANGE_IMPL_HPP
diff --git a/src/mlpack/core/math/round.hpp b/src/mlpack/core/math/round.hpp
index fac9317..4a8d97b 100644
--- a/src/mlpack/core/math/round.hpp
+++ b/src/mlpack/core/math/round.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of round() for use on Visual Studio, where C99 isn't
  * implemented.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_MATH_ROUND_HPP
 #define MLPACK_CORE_MATH_ROUND_HPP
diff --git a/src/mlpack/core/metrics/ip_metric.hpp b/src/mlpack/core/metrics/ip_metric.hpp
index b55ace8..6e13996 100644
--- a/src/mlpack/core/metrics/ip_metric.hpp
+++ b/src/mlpack/core/metrics/ip_metric.hpp
@@ -4,6 +4,11 @@
  *
  * Inner product induced metric.  If given a kernel function, this gives the
  * complementary metric.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_METHODS_FASTMKS_IP_METRIC_HPP
 #define MLPACK_METHODS_FASTMKS_IP_METRIC_HPP
diff --git a/src/mlpack/core/metrics/ip_metric_impl.hpp b/src/mlpack/core/metrics/ip_metric_impl.hpp
index 0d9cc1c..82b8653 100644
--- a/src/mlpack/core/metrics/ip_metric_impl.hpp
+++ b/src/mlpack/core/metrics/ip_metric_impl.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Implementation of the IPMetric.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_METHODS_FASTMKS_IP_METRIC_IMPL_HPP
 #define MLPACK_METHODS_FASTMKS_IP_METRIC_IMPL_HPP
diff --git a/src/mlpack/core/metrics/lmetric.hpp b/src/mlpack/core/metrics/lmetric.hpp
index 240ae2a..a84b2c6 100644
--- a/src/mlpack/core/metrics/lmetric.hpp
+++ b/src/mlpack/core/metrics/lmetric.hpp
@@ -6,6 +6,11 @@
  * as non-squared distances.  The squared distances are faster to compute.
  *
  * This also gives several convenience typedefs for commonly used L-metrics.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_METRICS_LMETRIC_HPP
 #define MLPACK_CORE_METRICS_LMETRIC_HPP
diff --git a/src/mlpack/core/metrics/lmetric_impl.hpp b/src/mlpack/core/metrics/lmetric_impl.hpp
index 5e1c886..4128ae9 100644
--- a/src/mlpack/core/metrics/lmetric_impl.hpp
+++ b/src/mlpack/core/metrics/lmetric_impl.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Implementation of template specializations of LMetric class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_METRICS_LMETRIC_IMPL_HPP
 #define MLPACK_CORE_METRICS_LMETRIC_IMPL_HPP
diff --git a/src/mlpack/core/metrics/mahalanobis_distance.hpp b/src/mlpack/core/metrics/mahalanobis_distance.hpp
index 77e9eea..ef1c48b 100644
--- a/src/mlpack/core/metrics/mahalanobis_distance.hpp
+++ b/src/mlpack/core/metrics/mahalanobis_distance.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * The Mahalanobis distance.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_METRICS_MAHALANOBIS_DISTANCE_HPP
 #define MLPACK_CORE_METRICS_MAHALANOBIS_DISTANCE_HPP
diff --git a/src/mlpack/core/metrics/mahalanobis_distance_impl.hpp b/src/mlpack/core/metrics/mahalanobis_distance_impl.hpp
index a13b9d4..458bdea 100644
--- a/src/mlpack/core/metrics/mahalanobis_distance_impl.hpp
+++ b/src/mlpack/core/metrics/mahalanobis_distance_impl.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Implementation of the Mahalanobis distance.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_METRICS_MAHALANOBIS_DISTANCE_IMPL_HPP
 #define MLPACK_CORE_METRICS_MAHALANOBIS_DISTANCE_IMPL_HPP
diff --git a/src/mlpack/core/optimizers/adadelta/ada_delta.hpp b/src/mlpack/core/optimizers/adadelta/ada_delta.hpp
index 942c81c..ba0a1be 100644
--- a/src/mlpack/core/optimizers/adadelta/ada_delta.hpp
+++ b/src/mlpack/core/optimizers/adadelta/ada_delta.hpp
@@ -6,6 +6,11 @@
  * Implementation of the Adadelta optimizer. Adadelta is an optimizer that
  * dynamically adapts over time using only first order information.
  * Additionally, Adadelta requires no manual tuning of a learning rate.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef __MLPACK_CORE_OPTIMIZERS_ADADELTA_ADA_DELTA_HPP
 #define __MLPACK_CORE_OPTIMIZERS_ADADELTA_ADA_DELTA_HPP
diff --git a/src/mlpack/core/optimizers/adadelta/ada_delta_impl.hpp b/src/mlpack/core/optimizers/adadelta/ada_delta_impl.hpp
index 6bfd9ed..ee34a7a 100644
--- a/src/mlpack/core/optimizers/adadelta/ada_delta_impl.hpp
+++ b/src/mlpack/core/optimizers/adadelta/ada_delta_impl.hpp
@@ -4,6 +4,11 @@
  * @author Vasanth Kalingeri
  *
  * Implementation of the Adadelta optimizer.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef __MLPACK_CORE_OPTIMIZERS_ADADELTA_ADA_DELTA_IMPL_HPP
 #define __MLPACK_CORE_OPTIMIZERS_ADADELTA_ADA_DELTA_IMPL_HPP
diff --git a/src/mlpack/core/optimizers/adam/adam.hpp b/src/mlpack/core/optimizers/adam/adam.hpp
index 9894664..dc430bc 100644
--- a/src/mlpack/core/optimizers/adam/adam.hpp
+++ b/src/mlpack/core/optimizers/adam/adam.hpp
@@ -7,6 +7,11 @@
  * Adam optimizer. Adam is an an algorithm for first-order gradient-based
  * optimization of stochastic objective functions, based on adaptive estimates
  * of lower-order moments.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef __MLPACK_CORE_OPTIMIZERS_ADAM_ADAM_HPP
 #define __MLPACK_CORE_OPTIMIZERS_ADAM_ADAM_HPP
diff --git a/src/mlpack/core/optimizers/adam/adam_impl.hpp b/src/mlpack/core/optimizers/adam/adam_impl.hpp
index 725a9d6..54f344f 100644
--- a/src/mlpack/core/optimizers/adam/adam_impl.hpp
+++ b/src/mlpack/core/optimizers/adam/adam_impl.hpp
@@ -5,6 +5,11 @@
  * @author Marcus Edel
  *
  * Implementation of the Adam optimizer.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef __MLPACK_CORE_OPTIMIZERS_ADAM_ADAM_IMPL_HPP
 #define __MLPACK_CORE_OPTIMIZERS_ADAM_ADAM_IMPL_HPP
diff --git a/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian.hpp b/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian.hpp
index c56cec9..10f8d4e 100644
--- a/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian.hpp
+++ b/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian.hpp
@@ -5,6 +5,11 @@
  * Definition of AugLagrangian class, which implements the Augmented Lagrangian
  * optimization method (also called the 'method of multipliers'.  This class
  * uses the L-BFGS optimizer.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 
 #ifndef MLPACK_CORE_OPTIMIZERS_AUG_LAGRANGIAN_AUG_LAGRANGIAN_HPP
diff --git a/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_function.hpp b/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_function.hpp
index c8e8cb2..7e6aaff 100644
--- a/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_function.hpp
+++ b/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_function.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Contains a utility class for AugLagrangian.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_AUG_LAGRANGIAN_AUG_LAGRANGIAN_FUNCTION_HPP
 #define MLPACK_CORE_OPTIMIZERS_AUG_LAGRANGIAN_AUG_LAGRANGIAN_FUNCTION_HPP
diff --git a/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_function_impl.hpp b/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_function_impl.hpp
index d59297a..09ea330 100644
--- a/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_function_impl.hpp
+++ b/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_function_impl.hpp
@@ -5,6 +5,11 @@
  * Simple, naive implementation of AugLagrangianFunction.  Better
  * specializations can probably be given in many cases, but this is the most
  * general case.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_AUG_LAGRANGIAN_AUG_LAGRANGIAN_FUNCTION_IMPL_HPP
 #define MLPACK_CORE_OPTIMIZERS_AUG_LAGRANGIAN_AUG_LAGRANGIAN_FUNCTION_IMPL_HPP
diff --git a/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_impl.hpp b/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_impl.hpp
index 1d308b0..a2bd733 100644
--- a/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_impl.hpp
+++ b/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of AugLagrangian class (Augmented Lagrangian optimization
  * method).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 
 #ifndef MLPACK_CORE_OPTIMIZERS_AUG_LAGRANGIAN_AUG_LAGRANGIAN_IMPL_HPP
diff --git a/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_test_functions.cpp b/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_test_functions.cpp
index 53efd0f..5d67b3d 100644
--- a/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_test_functions.cpp
+++ b/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_test_functions.cpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Implementation of AugLagrangianTestFunction class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 
 #include "aug_lagrangian_test_functions.hpp"
diff --git a/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_test_functions.hpp b/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_test_functions.hpp
index 4fc8f9d..1febb43 100644
--- a/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_test_functions.hpp
+++ b/src/mlpack/core/optimizers/aug_lagrangian/aug_lagrangian_test_functions.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Define test functions for the augmented Lagrangian method.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_AUG_LAGRANGIAN_TEST_FUNCTIONS_HPP
 #define MLPACK_CORE_OPTIMIZERS_AUG_LAGRANGIAN_TEST_FUNCTIONS_HPP
diff --git a/src/mlpack/core/optimizers/gradient_descent/gradient_descent.hpp b/src/mlpack/core/optimizers/gradient_descent/gradient_descent.hpp
index cf33b5b..737a859 100644
--- a/src/mlpack/core/optimizers/gradient_descent/gradient_descent.hpp
+++ b/src/mlpack/core/optimizers/gradient_descent/gradient_descent.hpp
@@ -3,6 +3,11 @@
  * @author Sumedh Ghaisas
  *
  * Simple Gradient Descent.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_GRADIENT_DESCENT_GRADIENT_DESCENT_HPP
 #define MLPACK_CORE_OPTIMIZERS_GRADIENT_DESCENT_GRADIENT_DESCENT_HPP
diff --git a/src/mlpack/core/optimizers/gradient_descent/gradient_descent_impl.hpp b/src/mlpack/core/optimizers/gradient_descent/gradient_descent_impl.hpp
index 22143f3..a3a8122 100644
--- a/src/mlpack/core/optimizers/gradient_descent/gradient_descent_impl.hpp
+++ b/src/mlpack/core/optimizers/gradient_descent/gradient_descent_impl.hpp
@@ -3,6 +3,11 @@
  * @author Sumedh Ghaisas
  *
  * Simple gradient descent implementation.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_GRADIENT_DESCENT_GRADIENT_DESCENT_IMPL_HPP
 #define MLPACK_CORE_OPTIMIZERS_GRADIENT_DESCENT_GRADIENT_DESCENT_IMPL_HPP
diff --git a/src/mlpack/core/optimizers/gradient_descent/test_function.cpp b/src/mlpack/core/optimizers/gradient_descent/test_function.cpp
index bf137fe..c980da0 100644
--- a/src/mlpack/core/optimizers/gradient_descent/test_function.cpp
+++ b/src/mlpack/core/optimizers/gradient_descent/test_function.cpp
@@ -3,6 +3,11 @@
  * @author Sumedh Ghaisas
  *
  * Implementation of very simple test function for gradient descent.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "test_function.hpp"
 
diff --git a/src/mlpack/core/optimizers/gradient_descent/test_function.hpp b/src/mlpack/core/optimizers/gradient_descent/test_function.hpp
index db28171..56b9192 100644
--- a/src/mlpack/core/optimizers/gradient_descent/test_function.hpp
+++ b/src/mlpack/core/optimizers/gradient_descent/test_function.hpp
@@ -3,6 +3,11 @@
  * @author Sumedh Ghaisas
  *
  * Very simple test function for SGD.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_GD_TEST_FUNCTION_HPP
 #define MLPACK_CORE_OPTIMIZERS_GD_TEST_FUNCTION_HPP
diff --git a/src/mlpack/core/optimizers/lbfgs/lbfgs.hpp b/src/mlpack/core/optimizers/lbfgs/lbfgs.hpp
index 689d3be..2edc108 100644
--- a/src/mlpack/core/optimizers/lbfgs/lbfgs.hpp
+++ b/src/mlpack/core/optimizers/lbfgs/lbfgs.hpp
@@ -4,6 +4,11 @@
  * @author Ryan Curtin
  *
  * The generic L-BFGS optimizer.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_LBFGS_LBFGS_HPP
 #define MLPACK_CORE_OPTIMIZERS_LBFGS_LBFGS_HPP
diff --git a/src/mlpack/core/optimizers/lbfgs/lbfgs_impl.hpp b/src/mlpack/core/optimizers/lbfgs/lbfgs_impl.hpp
index 81d3ab3..f8e44a3 100644
--- a/src/mlpack/core/optimizers/lbfgs/lbfgs_impl.hpp
+++ b/src/mlpack/core/optimizers/lbfgs/lbfgs_impl.hpp
@@ -4,6 +4,11 @@
  * @author Ryan Curtin
  *
  * The implementation of the L_BFGS optimizer.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_LBFGS_LBFGS_IMPL_HPP
 #define MLPACK_CORE_OPTIMIZERS_LBFGS_LBFGS_IMPL_HPP
diff --git a/src/mlpack/core/optimizers/lbfgs/test_functions.cpp b/src/mlpack/core/optimizers/lbfgs/test_functions.cpp
index 1269d00..d60b99c 100644
--- a/src/mlpack/core/optimizers/lbfgs/test_functions.cpp
+++ b/src/mlpack/core/optimizers/lbfgs/test_functions.cpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Implementations of the test functions defined in test_functions.hpp.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "test_functions.hpp"
 
diff --git a/src/mlpack/core/optimizers/lbfgs/test_functions.hpp b/src/mlpack/core/optimizers/lbfgs/test_functions.hpp
index cfcab5c..4ed54d3 100644
--- a/src/mlpack/core/optimizers/lbfgs/test_functions.hpp
+++ b/src/mlpack/core/optimizers/lbfgs/test_functions.hpp
@@ -9,6 +9,11 @@
  *  Jorge J. Moré, Burton S. Garbow, and Kenneth E. Hillstrom. 1981.
  *  ACM Trans. Math. Softw. 7, 1 (March 1981), 17-41.
  *  http://portal.acm.org/citation.cfm?id=355934.355936
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_LBFGS_TEST_FUNCTIONS_HPP
 #define MLPACK_CORE_OPTIMIZERS_LBFGS_TEST_FUNCTIONS_HPP
diff --git a/src/mlpack/core/optimizers/minibatch_sgd/minibatch_sgd.hpp b/src/mlpack/core/optimizers/minibatch_sgd/minibatch_sgd.hpp
index 7edc721..e9cb089 100644
--- a/src/mlpack/core/optimizers/minibatch_sgd/minibatch_sgd.hpp
+++ b/src/mlpack/core/optimizers/minibatch_sgd/minibatch_sgd.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Mini-batch Stochastic Gradient Descent (SGD).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_MINIBATCH_SGD_MINIBATCH_SGD_HPP
 #define MLPACK_CORE_OPTIMIZERS_MINIBATCH_SGD_MINIBATCH_SGD_HPP
diff --git a/src/mlpack/core/optimizers/minibatch_sgd/minibatch_sgd_impl.hpp b/src/mlpack/core/optimizers/minibatch_sgd/minibatch_sgd_impl.hpp
index 9a2adf2..5b95b41 100644
--- a/src/mlpack/core/optimizers/minibatch_sgd/minibatch_sgd_impl.hpp
+++ b/src/mlpack/core/optimizers/minibatch_sgd/minibatch_sgd_impl.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Implementation of mini-batch SGD.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_MINIBATCH_SGD_MINIBATCH_SGD_IMPL_HPP
 #define MLPACK_CORE_OPTIMIZERS_MINIBATCH_SGD_MINIBATCH_SGD_IMPL_HPP
diff --git a/src/mlpack/core/optimizers/rmsprop/rmsprop.hpp b/src/mlpack/core/optimizers/rmsprop/rmsprop.hpp
index 7603db9..5e04402 100644
--- a/src/mlpack/core/optimizers/rmsprop/rmsprop.hpp
+++ b/src/mlpack/core/optimizers/rmsprop/rmsprop.hpp
@@ -5,6 +5,11 @@
  *
  * RMSprop optimizer. RmsProp is an optimizer that utilizes the magnitude of
  * recent gradients to normalize the gradients.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_RMSPROP_RMSPROP_HPP
 #define MLPACK_CORE_OPTIMIZERS_RMSPROP_RMSPROP_HPP
diff --git a/src/mlpack/core/optimizers/rmsprop/rmsprop_impl.hpp b/src/mlpack/core/optimizers/rmsprop/rmsprop_impl.hpp
index f496efd..a06814b 100644
--- a/src/mlpack/core/optimizers/rmsprop/rmsprop_impl.hpp
+++ b/src/mlpack/core/optimizers/rmsprop/rmsprop_impl.hpp
@@ -4,6 +4,11 @@
  * @author Marcus Edel
  *
  * Implementation of the RMSprop optimizer.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_RMSPROP_RMSPROP_IMPL_HPP
 #define MLPACK_CORE_OPTIMIZERS_RMSPROP_RMSPROP_IMPL_HPP
diff --git a/src/mlpack/core/optimizers/sa/exponential_schedule.hpp b/src/mlpack/core/optimizers/sa/exponential_schedule.hpp
index 6bac79b..bd1fa29 100644
--- a/src/mlpack/core/optimizers/sa/exponential_schedule.hpp
+++ b/src/mlpack/core/optimizers/sa/exponential_schedule.hpp
@@ -3,6 +3,11 @@
  * @author Zhihao Lou
  *
  * Exponential (geometric) cooling schedule used in SA.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_SA_EXPONENTIAL_SCHEDULE_HPP
 #define MLPACK_CORE_OPTIMIZERS_SA_EXPONENTIAL_SCHEDULE_HPP
diff --git a/src/mlpack/core/optimizers/sa/sa.hpp b/src/mlpack/core/optimizers/sa/sa.hpp
index 81ef241..9c6b81b 100644
--- a/src/mlpack/core/optimizers/sa/sa.hpp
+++ b/src/mlpack/core/optimizers/sa/sa.hpp
@@ -3,6 +3,11 @@
  * @author Zhihao Lou
  *
  * Simulated Annealing (SA).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_SA_SA_HPP
 #define MLPACK_CORE_OPTIMIZERS_SA_SA_HPP
diff --git a/src/mlpack/core/optimizers/sa/sa_impl.hpp b/src/mlpack/core/optimizers/sa/sa_impl.hpp
index 9fe72d0..0ecbedc 100644
--- a/src/mlpack/core/optimizers/sa/sa_impl.hpp
+++ b/src/mlpack/core/optimizers/sa/sa_impl.hpp
@@ -3,6 +3,11 @@
  * @auther Zhihao Lou
  *
  * The implementation of the SA optimizer.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_SA_SA_IMPL_HPP
 #define MLPACK_CORE_OPTIMIZERS_SA_SA_IMPL_HPP
diff --git a/src/mlpack/core/optimizers/sdp/lrsdp.hpp b/src/mlpack/core/optimizers/sdp/lrsdp.hpp
index 67c436d..d7e0df1 100644
--- a/src/mlpack/core/optimizers/sdp/lrsdp.hpp
+++ b/src/mlpack/core/optimizers/sdp/lrsdp.hpp
@@ -4,6 +4,11 @@
  *
  * An implementation of Monteiro and Burer's formulation of low-rank
  * semidefinite programs (LR-SDP).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_SDP_LRSDP_HPP
 #define MLPACK_CORE_OPTIMIZERS_SDP_LRSDP_HPP
diff --git a/src/mlpack/core/optimizers/sdp/lrsdp_function.hpp b/src/mlpack/core/optimizers/sdp/lrsdp_function.hpp
index ded2355..aa195b2 100644
--- a/src/mlpack/core/optimizers/sdp/lrsdp_function.hpp
+++ b/src/mlpack/core/optimizers/sdp/lrsdp_function.hpp
@@ -4,6 +4,11 @@
  * @author Abhishek Laddha
  *
  * A class that represents the objective function which LRSDP optimizes.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_SDP_LRSDP_FUNCTION_HPP
 #define MLPACK_CORE_OPTIMIZERS_SDP_LRSDP_FUNCTION_HPP
diff --git a/src/mlpack/core/optimizers/sdp/lrsdp_function_impl.hpp b/src/mlpack/core/optimizers/sdp/lrsdp_function_impl.hpp
index 1ec4411..7b23b5e 100644
--- a/src/mlpack/core/optimizers/sdp/lrsdp_function_impl.hpp
+++ b/src/mlpack/core/optimizers/sdp/lrsdp_function_impl.hpp
@@ -5,6 +5,11 @@
  *
  * Implementation of the LRSDPFunction class, and also template specializations
  * for faster execution with the AugLagrangian optimizer.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_SDP_LRSDP_FUNCTION_IMPL_HPP
 #define MLPACK_CORE_OPTIMIZERS_SDP_LRSDP_FUNCTION_IMPL_HPP
diff --git a/src/mlpack/core/optimizers/sdp/lrsdp_impl.hpp b/src/mlpack/core/optimizers/sdp/lrsdp_impl.hpp
index 6b91ee7..8a4d204 100644
--- a/src/mlpack/core/optimizers/sdp/lrsdp_impl.hpp
+++ b/src/mlpack/core/optimizers/sdp/lrsdp_impl.hpp
@@ -4,6 +4,11 @@
  *
  * An implementation of Monteiro and Burer's formulation of low-rank
  * semidefinite programs (LR-SDP).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_SDP_LRSDP_IMPL_HPP
 #define MLPACK_CORE_OPTIMIZERS_SDP_LRSDP_IMPL_HPP
diff --git a/src/mlpack/core/optimizers/sdp/primal_dual.hpp b/src/mlpack/core/optimizers/sdp/primal_dual.hpp
index 1eb5963..62ab0cd 100644
--- a/src/mlpack/core/optimizers/sdp/primal_dual.hpp
+++ b/src/mlpack/core/optimizers/sdp/primal_dual.hpp
@@ -2,6 +2,11 @@
  * @file primal_dual.hpp
  * @author Stephen Tu
  *
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_SDP_PRIMAL_DUAL_HPP
 #define MLPACK_CORE_OPTIMIZERS_SDP_PRIMAL_DUAL_HPP
diff --git a/src/mlpack/core/optimizers/sdp/primal_dual_impl.hpp b/src/mlpack/core/optimizers/sdp/primal_dual_impl.hpp
index fb1089f..bc01438 100644
--- a/src/mlpack/core/optimizers/sdp/primal_dual_impl.hpp
+++ b/src/mlpack/core/optimizers/sdp/primal_dual_impl.hpp
@@ -20,6 +20,11 @@
  * Also note the current implementation assumes the SDP problem has a strictly
  * feasible primal/dual point (and therefore the duality gap is zero), and
  * that the constraint matrices are linearly independent.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_SDP_PRIMAL_DUAL_IMPL_HPP
 #define MLPACK_CORE_OPTIMIZERS_SDP_PRIMAL_DUAL_IMPL_HPP
diff --git a/src/mlpack/core/optimizers/sdp/sdp.hpp b/src/mlpack/core/optimizers/sdp/sdp.hpp
index 1f1ea78..2409057 100644
--- a/src/mlpack/core/optimizers/sdp/sdp.hpp
+++ b/src/mlpack/core/optimizers/sdp/sdp.hpp
@@ -2,6 +2,11 @@
  * @file sdp.hpp
  * @author Stephen Tu
  *
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_SDP_SDP_HPP
 #define MLPACK_CORE_OPTIMIZERS_SDP_SDP_HPP
diff --git a/src/mlpack/core/optimizers/sdp/sdp_impl.hpp b/src/mlpack/core/optimizers/sdp/sdp_impl.hpp
index 3e18e63..2e0ff76 100644
--- a/src/mlpack/core/optimizers/sdp/sdp_impl.hpp
+++ b/src/mlpack/core/optimizers/sdp/sdp_impl.hpp
@@ -2,6 +2,11 @@
  * @file sdp_impl.hpp
  * @author Stephen Tu
  *
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_SDP_SDP_IMPL_HPP
 #define MLPACK_CORE_OPTIMIZERS_SDP_SDP_IMPL_HPP
diff --git a/src/mlpack/core/optimizers/sgd/sgd.hpp b/src/mlpack/core/optimizers/sgd/sgd.hpp
index a8ff989..9d3518d 100644
--- a/src/mlpack/core/optimizers/sgd/sgd.hpp
+++ b/src/mlpack/core/optimizers/sgd/sgd.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Stochastic Gradient Descent (SGD).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_SGD_SGD_HPP
 #define MLPACK_CORE_OPTIMIZERS_SGD_SGD_HPP
diff --git a/src/mlpack/core/optimizers/sgd/sgd_impl.hpp b/src/mlpack/core/optimizers/sgd/sgd_impl.hpp
index c47705a..1f8baa0 100644
--- a/src/mlpack/core/optimizers/sgd/sgd_impl.hpp
+++ b/src/mlpack/core/optimizers/sgd/sgd_impl.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Implementation of stochastic gradient descent.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_SGD_SGD_IMPL_HPP
 #define MLPACK_CORE_OPTIMIZERS_SGD_SGD_IMPL_HPP
diff --git a/src/mlpack/core/optimizers/sgd/test_function.cpp b/src/mlpack/core/optimizers/sgd/test_function.cpp
index 730c0a0..435838a 100644
--- a/src/mlpack/core/optimizers/sgd/test_function.cpp
+++ b/src/mlpack/core/optimizers/sgd/test_function.cpp
@@ -4,6 +4,11 @@
  *
  * Implementation of very simple test function for stochastic gradient descent
  * (SGD).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "test_function.hpp"
 
diff --git a/src/mlpack/core/optimizers/sgd/test_function.hpp b/src/mlpack/core/optimizers/sgd/test_function.hpp
index 7b059e1..bed380c 100644
--- a/src/mlpack/core/optimizers/sgd/test_function.hpp
+++ b/src/mlpack/core/optimizers/sgd/test_function.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Very simple test function for SGD.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_OPTIMIZERS_SGD_TEST_FUNCTION_HPP
 #define MLPACK_CORE_OPTIMIZERS_SGD_TEST_FUNCTION_HPP
diff --git a/src/mlpack/core/tree/address.hpp b/src/mlpack/core/tree/address.hpp
index bf183e2..b1ab495 100644
--- a/src/mlpack/core/tree/address.hpp
+++ b/src/mlpack/core/tree/address.hpp
@@ -47,6 +47,11 @@ namespace addr {
  *
  * @param address The resulting address.
  * @param point The point that is being translated to the address.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 template<typename AddressType, typename VecType>
 void PointToAddress(AddressType& address, const VecType& point)
diff --git a/src/mlpack/core/tree/ballbound.hpp b/src/mlpack/core/tree/ballbound.hpp
index 14f289a..a5e002c 100644
--- a/src/mlpack/core/tree/ballbound.hpp
+++ b/src/mlpack/core/tree/ballbound.hpp
@@ -3,6 +3,11 @@
  *
  * Bounds that are useful for binary space partitioning trees.
  * Interface to a ball bound that works in arbitrary metric spaces.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BALLBOUND_HPP
 #define MLPACK_CORE_TREE_BALLBOUND_HPP
diff --git a/src/mlpack/core/tree/ballbound_impl.hpp b/src/mlpack/core/tree/ballbound_impl.hpp
index 989658e..94a5369 100644
--- a/src/mlpack/core/tree/ballbound_impl.hpp
+++ b/src/mlpack/core/tree/ballbound_impl.hpp
@@ -3,6 +3,11 @@
  *
  * Bounds that are useful for binary space partitioning trees.
  * Implementation of BallBound ball bound metric policy class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BALLBOUND_IMPL_HPP
 #define MLPACK_CORE_TREE_BALLBOUND_IMPL_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree.hpp b/src/mlpack/core/tree/binary_space_tree.hpp
index 51de06a..1b6f1d2 100644
--- a/src/mlpack/core/tree/binary_space_tree.hpp
+++ b/src/mlpack/core/tree/binary_space_tree.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Include all the necessary files to use the BinarySpaceTree class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp b/src/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp
index 863c011..7d16fd8 100644
--- a/src/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/binary_space_tree.hpp
@@ -2,6 +2,11 @@
  * @file binary_space_tree.hpp
  *
  * Definition of generalized binary space partitioning tree (BinarySpaceTree).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_BINARY_SPACE_TREE_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_BINARY_SPACE_TREE_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp b/src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp
index 97570d8..db43a31 100644
--- a/src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/binary_space_tree_impl.hpp
@@ -2,6 +2,11 @@
  * @file binary_space_tree_impl.hpp
  *
  * Implementation of generalized space partitioning tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_BINARY_SPACE_TREE_IMPL_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_BINARY_SPACE_TREE_IMPL_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/breadth_first_dual_tree_traverser.hpp b/src/mlpack/core/tree/binary_space_tree/breadth_first_dual_tree_traverser.hpp
index 11e3469..8985da8 100644
--- a/src/mlpack/core/tree/binary_space_tree/breadth_first_dual_tree_traverser.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/breadth_first_dual_tree_traverser.hpp
@@ -6,6 +6,11 @@
  * This is a nested class of BinarySpaceTree which traverses two trees in a
  * breadth-first manner with a given set of rules which indicate the branches
  * which can be pruned and the order in which to recurse.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_BREADTH_FIRST_DUAL_TREE_TRAVERSER_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_BREADTH_FIRST_DUAL_TREE_TRAVERSER_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/breadth_first_dual_tree_traverser_impl.hpp b/src/mlpack/core/tree/binary_space_tree/breadth_first_dual_tree_traverser_impl.hpp
index eb09f94..1b96381 100644
--- a/src/mlpack/core/tree/binary_space_tree/breadth_first_dual_tree_traverser_impl.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/breadth_first_dual_tree_traverser_impl.hpp
@@ -5,6 +5,11 @@
  * Implementation of the BreadthFirstDualTreeTraverser for BinarySpaceTree.
  * This is a way to perform a dual-tree traversal of two trees.  The trees must
  * be the same type.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_BREADTH_FIRST_DUAL_TREE_TRAVERSER_IMPL_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_BREADTH_FIRST_DUAL_TREE_TRAVERSER_IMPL_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/dual_tree_traverser.hpp b/src/mlpack/core/tree/binary_space_tree/dual_tree_traverser.hpp
index 25c9e64..cc1a429 100644
--- a/src/mlpack/core/tree/binary_space_tree/dual_tree_traverser.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/dual_tree_traverser.hpp
@@ -6,6 +6,11 @@
  * nested class of BinarySpaceTree which traverses two trees in a depth-first
  * manner with a given set of rules which indicate the branches which can be
  * pruned and the order in which to recurse.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_DUAL_TREE_TRAVERSER_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_DUAL_TREE_TRAVERSER_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/dual_tree_traverser_impl.hpp b/src/mlpack/core/tree/binary_space_tree/dual_tree_traverser_impl.hpp
index 87916f0..1c9f6af 100644
--- a/src/mlpack/core/tree/binary_space_tree/dual_tree_traverser_impl.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/dual_tree_traverser_impl.hpp
@@ -5,6 +5,11 @@
  * Implementation of the DualTreeTraverser for BinarySpaceTree.  This is a way
  * to perform a dual-tree traversal of two trees.  The trees must be the same
  * type.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_DUAL_TREE_TRAVERSER_IMPL_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_DUAL_TREE_TRAVERSER_IMPL_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/mean_split.hpp b/src/mlpack/core/tree/binary_space_tree/mean_split.hpp
index ecad1ba..02cc5d0 100644
--- a/src/mlpack/core/tree/binary_space_tree/mean_split.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/mean_split.hpp
@@ -5,6 +5,11 @@
  *
  * Definition of MeanSplit, a class that splits a binary space partitioning tree
  * node into two parts using the mean of the values in a certain dimension.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_MEAN_SPLIT_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_MEAN_SPLIT_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/mean_split_impl.hpp b/src/mlpack/core/tree/binary_space_tree/mean_split_impl.hpp
index 9759600..ff6f932 100644
--- a/src/mlpack/core/tree/binary_space_tree/mean_split_impl.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/mean_split_impl.hpp
@@ -4,6 +4,11 @@
  * @author Ryan Curtin
  *
  * Implementation of class(MeanSplit) to split a binary space partition tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_MEAN_SPLIT_IMPL_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_MEAN_SPLIT_IMPL_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/midpoint_split.hpp b/src/mlpack/core/tree/binary_space_tree/midpoint_split.hpp
index 01d8eeb..779a301 100644
--- a/src/mlpack/core/tree/binary_space_tree/midpoint_split.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/midpoint_split.hpp
@@ -6,6 +6,11 @@
  * Definition of MidpointSplit, a class that splits a binary space partitioning
  * tree node into two parts using the midpoint of the values in a certain
  * dimension.  The dimension to split on is the dimension with maximum variance.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_MIDPOINT_SPLIT_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_MIDPOINT_SPLIT_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/midpoint_split_impl.hpp b/src/mlpack/core/tree/binary_space_tree/midpoint_split_impl.hpp
index 7cbf6fd..aca8341 100644
--- a/src/mlpack/core/tree/binary_space_tree/midpoint_split_impl.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/midpoint_split_impl.hpp
@@ -5,6 +5,11 @@
  *
  * Implementation of class (MidpointSplit) to split a binary space partition
  * tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_MIDPOINT_SPLIT_IMPL_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_MIDPOINT_SPLIT_IMPL_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/rp_tree_max_split.hpp b/src/mlpack/core/tree/binary_space_tree/rp_tree_max_split.hpp
index 9d01b0d..b7400ee 100644
--- a/src/mlpack/core/tree/binary_space_tree/rp_tree_max_split.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/rp_tree_max_split.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of class (RPTreeMaxSplit) to split a binary space partition
  * tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_RP_TREE_MAX_SPLIT_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_RP_TREE_MAX_SPLIT_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/rp_tree_max_split_impl.hpp b/src/mlpack/core/tree/binary_space_tree/rp_tree_max_split_impl.hpp
index 9943853..6ccd932 100644
--- a/src/mlpack/core/tree/binary_space_tree/rp_tree_max_split_impl.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/rp_tree_max_split_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of class (RPTreeMaxSplit) to split a binary space partition
  * tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_RP_TREE_MAX_SPLIT_IMPL_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_RP_TREE_MAX_SPLIT_IMPL_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/rp_tree_mean_split.hpp b/src/mlpack/core/tree/binary_space_tree/rp_tree_mean_split.hpp
index 332122b..eddb73d 100644
--- a/src/mlpack/core/tree/binary_space_tree/rp_tree_mean_split.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/rp_tree_mean_split.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of class (RPTreeMaxSplit) to split a binary space partition
  * tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_RP_TREE_MEAN_SPLIT_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_RP_TREE_MEAN_SPLIT_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/rp_tree_mean_split_impl.hpp b/src/mlpack/core/tree/binary_space_tree/rp_tree_mean_split_impl.hpp
index 1bb1879..6c55008 100644
--- a/src/mlpack/core/tree/binary_space_tree/rp_tree_mean_split_impl.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/rp_tree_mean_split_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of class (RPTreeMeanSplit) to split a binary space partition
  * tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_RP_TREE_MEAN_SPLIT_IMPL_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_RP_TREE_MEAN_SPLIT_IMPL_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/single_tree_traverser.hpp b/src/mlpack/core/tree/binary_space_tree/single_tree_traverser.hpp
index caa3d97..9665583 100644
--- a/src/mlpack/core/tree/binary_space_tree/single_tree_traverser.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/single_tree_traverser.hpp
@@ -5,6 +5,11 @@
  * A nested class of BinarySpaceTree which traverses the entire tree with a
  * given set of rules which indicate the branches which can be pruned and the
  * order in which to recurse.  This traverser is a depth-first traverser.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_SINGLE_TREE_TRAVERSER_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_SINGLE_TREE_TRAVERSER_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/single_tree_traverser_impl.hpp b/src/mlpack/core/tree/binary_space_tree/single_tree_traverser_impl.hpp
index c9f6b1e..65d1885 100644
--- a/src/mlpack/core/tree/binary_space_tree/single_tree_traverser_impl.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/single_tree_traverser_impl.hpp
@@ -5,6 +5,11 @@
  * A nested class of BinarySpaceTree which traverses the entire tree with a
  * given set of rules which indicate the branches which can be pruned and the
  * order in which to recurse.  This traverser is a depth-first traverser.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_SINGLE_TREE_TRAVERSER_IMPL_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_SINGLE_TREE_TRAVERSER_IMPL_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/traits.hpp b/src/mlpack/core/tree/binary_space_tree/traits.hpp
index 4ebdb04..9556cb6 100644
--- a/src/mlpack/core/tree/binary_space_tree/traits.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/traits.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Specialization of the TreeTraits class for the BinarySpaceTree type of tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_TRAITS_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_TRAITS_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/typedef.hpp b/src/mlpack/core/tree/binary_space_tree/typedef.hpp
index a707ffc..35d3472 100644
--- a/src/mlpack/core/tree/binary_space_tree/typedef.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/typedef.hpp
@@ -4,6 +4,11 @@
  *
  * Template typedefs for the BinarySpaceTree class that satisfy the requirements
  * of the TreeType policy class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_TYPEDEF_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_TYPEDEF_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/ub_tree_split.hpp b/src/mlpack/core/tree/binary_space_tree/ub_tree_split.hpp
index f704c90..b914d8a 100644
--- a/src/mlpack/core/tree/binary_space_tree/ub_tree_split.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/ub_tree_split.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of UBTreeSplit, a class that splits the space according
  * to the median address of points contained in the node.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_UB_TREE_SPLIT_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_UB_TREE_SPLIT_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/ub_tree_split_impl.hpp b/src/mlpack/core/tree/binary_space_tree/ub_tree_split_impl.hpp
index 51beba8..0841c15 100644
--- a/src/mlpack/core/tree/binary_space_tree/ub_tree_split_impl.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/ub_tree_split_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of UBTreeSplit, a class that splits a node according
  * to the median address of points contained in the node.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_UB_TREE_SPLIT_IMPL_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_UB_TREE_SPLIT_IMPL_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/vantage_point_split.hpp b/src/mlpack/core/tree/binary_space_tree/vantage_point_split.hpp
index 5a16c45..ed24ea0 100644
--- a/src/mlpack/core/tree/binary_space_tree/vantage_point_split.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/vantage_point_split.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of class VantagePointSplit, a class that splits a vantage point
  * tree into two parts using the distance to a certain vantage point.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_VANTAGE_POINT_SPLIT_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_VANTAGE_POINT_SPLIT_HPP
diff --git a/src/mlpack/core/tree/binary_space_tree/vantage_point_split_impl.hpp b/src/mlpack/core/tree/binary_space_tree/vantage_point_split_impl.hpp
index 3028d53..fd15b45 100644
--- a/src/mlpack/core/tree/binary_space_tree/vantage_point_split_impl.hpp
+++ b/src/mlpack/core/tree/binary_space_tree/vantage_point_split_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of class (VantagePointSplit) to split a vantage point
  * tree according to the median value of the distance to a certain vantage point.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BINARY_SPACE_TREE_VANTAGE_POINT_SPLIT_IMPL_HPP
 #define MLPACK_CORE_TREE_BINARY_SPACE_TREE_VANTAGE_POINT_SPLIT_IMPL_HPP
diff --git a/src/mlpack/core/tree/bound_traits.hpp b/src/mlpack/core/tree/bound_traits.hpp
index 33b48e1..dbc5299 100644
--- a/src/mlpack/core/tree/bound_traits.hpp
+++ b/src/mlpack/core/tree/bound_traits.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * A class for template metaprogramming traits for bounds.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_BOUND_TRAITS_HPP
 #define MLPACK_CORE_TREE_BOUND_TRAITS_HPP
diff --git a/src/mlpack/core/tree/bounds.hpp b/src/mlpack/core/tree/bounds.hpp
index 3c53d41..d5a0756 100644
--- a/src/mlpack/core/tree/bounds.hpp
+++ b/src/mlpack/core/tree/bounds.hpp
@@ -2,6 +2,11 @@
  * @file bounds.hpp
  *
  * Bounds that are useful for binary space partitioning trees.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 
 #ifndef MLPACK_CORE_TREE_BOUNDS_HPP
diff --git a/src/mlpack/core/tree/cellbound.hpp b/src/mlpack/core/tree/cellbound.hpp
index 8841f8b..2ef5d41 100644
--- a/src/mlpack/core/tree/cellbound.hpp
+++ b/src/mlpack/core/tree/cellbound.hpp
@@ -25,6 +25,11 @@
  *   address = {London, UK, UK},
  * }
  * @endcode
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_CELLBOUND_HPP
 #define MLPACK_CORE_TREE_CELLBOUND_HPP
diff --git a/src/mlpack/core/tree/cellbound_impl.hpp b/src/mlpack/core/tree/cellbound_impl.hpp
index 242699c..6b854c0 100644
--- a/src/mlpack/core/tree/cellbound_impl.hpp
+++ b/src/mlpack/core/tree/cellbound_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of the CellBound class. The class describes a bound that
  * consists of a number of hyperrectangles.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_CELLBOUND_IMPL_HPP
 #define MLPACK_CORE_TREE_CELLBOUND_IMPL_HPP
diff --git a/src/mlpack/core/tree/cosine_tree/cosine_tree.cpp b/src/mlpack/core/tree/cosine_tree/cosine_tree.cpp
index 01acbb7..35a4dc1 100644
--- a/src/mlpack/core/tree/cosine_tree/cosine_tree.cpp
+++ b/src/mlpack/core/tree/cosine_tree/cosine_tree.cpp
@@ -3,6 +3,11 @@
  * @author Siddharth Agrawal
  *
  * Implementation of cosine tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "cosine_tree.hpp"
 
diff --git a/src/mlpack/core/tree/cosine_tree/cosine_tree.hpp b/src/mlpack/core/tree/cosine_tree/cosine_tree.hpp
index 16bcb6c..042798a 100644
--- a/src/mlpack/core/tree/cosine_tree/cosine_tree.hpp
+++ b/src/mlpack/core/tree/cosine_tree/cosine_tree.hpp
@@ -3,6 +3,11 @@
  * @author Siddharth Agrawal
  *
  * Definition of Cosine Tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_COSINE_TREE_COSINE_TREE_HPP
 #define MLPACK_CORE_TREE_COSINE_TREE_COSINE_TREE_HPP
diff --git a/src/mlpack/core/tree/cover_tree.hpp b/src/mlpack/core/tree/cover_tree.hpp
index 0ad2ff3..b84ad6c 100644
--- a/src/mlpack/core/tree/cover_tree.hpp
+++ b/src/mlpack/core/tree/cover_tree.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Includes all the necessary files to use the CoverTree class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_COVER_TREE_HPP
 #define MLPACK_CORE_TREE_COVER_TREE_HPP
diff --git a/src/mlpack/core/tree/cover_tree/cover_tree.hpp b/src/mlpack/core/tree/cover_tree/cover_tree.hpp
index 141a4af..af45181 100644
--- a/src/mlpack/core/tree/cover_tree/cover_tree.hpp
+++ b/src/mlpack/core/tree/cover_tree/cover_tree.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Definition of CoverTree, which can be used in place of the BinarySpaceTree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_COVER_TREE_COVER_TREE_HPP
 #define MLPACK_CORE_TREE_COVER_TREE_COVER_TREE_HPP
diff --git a/src/mlpack/core/tree/cover_tree/cover_tree_impl.hpp b/src/mlpack/core/tree/cover_tree/cover_tree_impl.hpp
index 12095de..d471d45 100644
--- a/src/mlpack/core/tree/cover_tree/cover_tree_impl.hpp
+++ b/src/mlpack/core/tree/cover_tree/cover_tree_impl.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Implementation of CoverTree class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_COVER_TREE_COVER_TREE_IMPL_HPP
 #define MLPACK_CORE_TREE_COVER_TREE_COVER_TREE_IMPL_HPP
diff --git a/src/mlpack/core/tree/cover_tree/dual_tree_traverser.hpp b/src/mlpack/core/tree/cover_tree/dual_tree_traverser.hpp
index 9fe1372..2440be4 100644
--- a/src/mlpack/core/tree/cover_tree/dual_tree_traverser.hpp
+++ b/src/mlpack/core/tree/cover_tree/dual_tree_traverser.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * A dual-tree traverser for the cover tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_COVER_TREE_DUAL_TREE_TRAVERSER_HPP
 #define MLPACK_CORE_TREE_COVER_TREE_DUAL_TREE_TRAVERSER_HPP
diff --git a/src/mlpack/core/tree/cover_tree/dual_tree_traverser_impl.hpp b/src/mlpack/core/tree/cover_tree/dual_tree_traverser_impl.hpp
index e0d5281..4aa0dad 100644
--- a/src/mlpack/core/tree/cover_tree/dual_tree_traverser_impl.hpp
+++ b/src/mlpack/core/tree/cover_tree/dual_tree_traverser_impl.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * A dual-tree traverser for the cover tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_COVER_TREE_DUAL_TREE_TRAVERSER_IMPL_HPP
 #define MLPACK_CORE_TREE_COVER_TREE_DUAL_TREE_TRAVERSER_IMPL_HPP
diff --git a/src/mlpack/core/tree/cover_tree/first_point_is_root.hpp b/src/mlpack/core/tree/cover_tree/first_point_is_root.hpp
index 02bee9d..42cd037 100644
--- a/src/mlpack/core/tree/cover_tree/first_point_is_root.hpp
+++ b/src/mlpack/core/tree/cover_tree/first_point_is_root.hpp
@@ -4,6 +4,11 @@
  *
  * A very simple policy for the cover tree; the first point in the dataset is
  * chosen as the root of the cover tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_FIRST_POINT_IS_ROOT_HPP
 #define MLPACK_CORE_TREE_FIRST_POINT_IS_ROOT_HPP
diff --git a/src/mlpack/core/tree/cover_tree/single_tree_traverser.hpp b/src/mlpack/core/tree/cover_tree/single_tree_traverser.hpp
index ae9a07f..efc01d6 100644
--- a/src/mlpack/core/tree/cover_tree/single_tree_traverser.hpp
+++ b/src/mlpack/core/tree/cover_tree/single_tree_traverser.hpp
@@ -5,6 +5,11 @@
  * Defines the SingleTreeTraverser for the cover tree.  This implements a
  * single-tree breadth-first recursion with a pruning rule and a base case (two
  * point) rule.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_COVER_TREE_SINGLE_TREE_TRAVERSER_HPP
 #define MLPACK_CORE_TREE_COVER_TREE_SINGLE_TREE_TRAVERSER_HPP
diff --git a/src/mlpack/core/tree/cover_tree/single_tree_traverser_impl.hpp b/src/mlpack/core/tree/cover_tree/single_tree_traverser_impl.hpp
index 4ce26b2..46b3900 100644
--- a/src/mlpack/core/tree/cover_tree/single_tree_traverser_impl.hpp
+++ b/src/mlpack/core/tree/cover_tree/single_tree_traverser_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of the single tree traverser for cover trees, which implements
  * a breadth-first traversal.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_COVER_TREE_SINGLE_TREE_TRAVERSER_IMPL_HPP
 #define MLPACK_CORE_TREE_COVER_TREE_SINGLE_TREE_TRAVERSER_IMPL_HPP
diff --git a/src/mlpack/core/tree/cover_tree/traits.hpp b/src/mlpack/core/tree/cover_tree/traits.hpp
index 1e3aefa..a28edc1 100644
--- a/src/mlpack/core/tree/cover_tree/traits.hpp
+++ b/src/mlpack/core/tree/cover_tree/traits.hpp
@@ -4,6 +4,11 @@
  *
  * This file contains the specialization of the TreeTraits class for the
  * CoverTree type of tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_COVER_TREE_TRAITS_HPP
 #define MLPACK_CORE_TREE_COVER_TREE_TRAITS_HPP
diff --git a/src/mlpack/core/tree/cover_tree/typedef.hpp b/src/mlpack/core/tree/cover_tree/typedef.hpp
index 1a441ce..cbf5453 100644
--- a/src/mlpack/core/tree/cover_tree/typedef.hpp
+++ b/src/mlpack/core/tree/cover_tree/typedef.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Typedef of cover tree to match TreeType API.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_COVER_TREE_TYPEDEF_HPP
 #define MLPACK_CORE_TREE_COVER_TREE_TYPEDEF_HPP
diff --git a/src/mlpack/core/tree/example_tree.hpp b/src/mlpack/core/tree/example_tree.hpp
index 0fc0eee..f2a5eeb 100644
--- a/src/mlpack/core/tree/example_tree.hpp
+++ b/src/mlpack/core/tree/example_tree.hpp
@@ -5,6 +5,11 @@
  * An example tree.  This contains all the functions that mlpack trees must
  * implement (although the actual implementations here don't make any sense
  * because this is just an example).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_EXAMPLE_TREE_HPP
 #define MLPACK_CORE_TREE_EXAMPLE_TREE_HPP
diff --git a/src/mlpack/core/tree/greedy_single_tree_traverser.hpp b/src/mlpack/core/tree/greedy_single_tree_traverser.hpp
index 29bc697..c2ba5c5 100644
--- a/src/mlpack/core/tree/greedy_single_tree_traverser.hpp
+++ b/src/mlpack/core/tree/greedy_single_tree_traverser.hpp
@@ -5,6 +5,11 @@
  * A simple greedy traverser which always chooses the child with the best score
  * and doesn't do backtracking.  The RuleType class must implement the method
  * 'GetBestChild()'.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_GREEDY_SINGLE_TREE_TRAVERSER_HPP
 #define MLPACK_CORE_TREE_GREEDY_SINGLE_TREE_TRAVERSER_HPP
diff --git a/src/mlpack/core/tree/greedy_single_tree_traverser_impl.hpp b/src/mlpack/core/tree/greedy_single_tree_traverser_impl.hpp
index 5543f16..136ee01 100644
--- a/src/mlpack/core/tree/greedy_single_tree_traverser_impl.hpp
+++ b/src/mlpack/core/tree/greedy_single_tree_traverser_impl.hpp
@@ -5,6 +5,11 @@
  * A simple greedy traverser which always chooses the child with the best score
  * and doesn't do backtracking.  The RuleType class must implement the method
  * 'GetBestChild()'.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_GREEDY_SINGLE_TREE_TRAVERSER_IMPL_HPP
 #define MLPACK_CORE_TREE_GREEDY_SINGLE_TREE_TRAVERSER_IMPL_HPP
diff --git a/src/mlpack/core/tree/hollow_ball_bound.hpp b/src/mlpack/core/tree/hollow_ball_bound.hpp
index c7b29cf..15bf154 100644
--- a/src/mlpack/core/tree/hollow_ball_bound.hpp
+++ b/src/mlpack/core/tree/hollow_ball_bound.hpp
@@ -3,6 +3,11 @@
  *
  * Bounds that are useful for binary space partitioning trees.
  * Interface to a ball bound that works in arbitrary metric spaces.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_HOLLOW_BALL_BOUND_HPP
 #define MLPACK_CORE_TREE_HOLLOW_BALL_BOUND_HPP
diff --git a/src/mlpack/core/tree/hollow_ball_bound_impl.hpp b/src/mlpack/core/tree/hollow_ball_bound_impl.hpp
index 39a4b0f..90bdb00 100644
--- a/src/mlpack/core/tree/hollow_ball_bound_impl.hpp
+++ b/src/mlpack/core/tree/hollow_ball_bound_impl.hpp
@@ -3,6 +3,11 @@
  *
  * Bounds that are useful for binary space partitioning trees.
  * Implementation of HollowBallBound ball bound metric policy class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_HOLLOW_BALL_BOUND_IMPL_HPP
 #define MLPACK_CORE_TREE_HOLLOW_BALL_BOUND_IMPL_HPP
diff --git a/src/mlpack/core/tree/hrectbound.hpp b/src/mlpack/core/tree/hrectbound.hpp
index 7a0823f..04b48d8 100644
--- a/src/mlpack/core/tree/hrectbound.hpp
+++ b/src/mlpack/core/tree/hrectbound.hpp
@@ -5,6 +5,11 @@
  *
  * This file describes the interface for the HRectBound class, which implements
  * a hyperrectangle bound.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_HRECTBOUND_HPP
 #define MLPACK_CORE_TREE_HRECTBOUND_HPP
diff --git a/src/mlpack/core/tree/hrectbound_impl.hpp b/src/mlpack/core/tree/hrectbound_impl.hpp
index 41dd0de..b6734fc 100644
--- a/src/mlpack/core/tree/hrectbound_impl.hpp
+++ b/src/mlpack/core/tree/hrectbound_impl.hpp
@@ -3,6 +3,11 @@
  *
  * Implementation of hyper-rectangle bound policy class.
  * Template parameter Power is the metric to use; use 2 for Euclidean (L2).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_HRECTBOUND_IMPL_HPP
 #define MLPACK_CORE_TREE_HRECTBOUND_IMPL_HPP
diff --git a/src/mlpack/core/tree/octree.hpp b/src/mlpack/core/tree/octree.hpp
index ed72ae5..f274657 100644
--- a/src/mlpack/core/tree/octree.hpp
+++ b/src/mlpack/core/tree/octree.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Include all the necessary files to use the Octree class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_OCTREE_HPP
 #define MLPACK_CORE_TREE_OCTREE_HPP
diff --git a/src/mlpack/core/tree/octree/dual_tree_traverser.hpp b/src/mlpack/core/tree/octree/dual_tree_traverser.hpp
index ec9774a..28a185e 100644
--- a/src/mlpack/core/tree/octree/dual_tree_traverser.hpp
+++ b/src/mlpack/core/tree/octree/dual_tree_traverser.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Define the dual-tree traverser for the Octree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_OCTREE_DUAL_TREE_TRAVERSER_HPP
 #define MLPACK_CORE_TREE_OCTREE_DUAL_TREE_TRAVERSER_HPP
diff --git a/src/mlpack/core/tree/octree/dual_tree_traverser_impl.hpp b/src/mlpack/core/tree/octree/dual_tree_traverser_impl.hpp
index 7ea6690..7bf14c2 100644
--- a/src/mlpack/core/tree/octree/dual_tree_traverser_impl.hpp
+++ b/src/mlpack/core/tree/octree/dual_tree_traverser_impl.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Implementation of the dual-tree traverser for the octree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_OCTREE_DUAL_TREE_TRAVERSER_IMPL_HPP
 #define MLPACK_CORE_TREE_OCTREE_DUAL_TREE_TRAVERSER_IMPL_HPP
diff --git a/src/mlpack/core/tree/octree/octree.hpp b/src/mlpack/core/tree/octree/octree.hpp
index 3402915..c5c8603 100644
--- a/src/mlpack/core/tree/octree/octree.hpp
+++ b/src/mlpack/core/tree/octree/octree.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Definition of generalized octree (Octree).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_OCTREE_OCTREE_HPP
 #define MLPACK_CORE_TREE_OCTREE_OCTREE_HPP
diff --git a/src/mlpack/core/tree/octree/octree_impl.hpp b/src/mlpack/core/tree/octree/octree_impl.hpp
index 282e2bf..b0c4b9a 100644
--- a/src/mlpack/core/tree/octree/octree_impl.hpp
+++ b/src/mlpack/core/tree/octree/octree_impl.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Implementation of generalized octree (Octree).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_OCTREE_OCTREE_IMPL_HPP
 #define MLPACK_CORE_TREE_OCTREE_OCTREE_IMPL_HPP
diff --git a/src/mlpack/core/tree/octree/single_tree_traverser.hpp b/src/mlpack/core/tree/octree/single_tree_traverser.hpp
index a82149f..c1317fa 100644
--- a/src/mlpack/core/tree/octree/single_tree_traverser.hpp
+++ b/src/mlpack/core/tree/octree/single_tree_traverser.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Definition of the single tree traverser for the octree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_OCTREE_SINGLE_TREE_TRAVERSER_HPP
 #define MLPACK_CORE_TREE_OCTREE_SINGLE_TREE_TRAVERSER_HPP
diff --git a/src/mlpack/core/tree/octree/single_tree_traverser_impl.hpp b/src/mlpack/core/tree/octree/single_tree_traverser_impl.hpp
index 49ba9c2..3e0ce8a 100644
--- a/src/mlpack/core/tree/octree/single_tree_traverser_impl.hpp
+++ b/src/mlpack/core/tree/octree/single_tree_traverser_impl.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Implementation of the single tree traverser for octrees.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_OCTREE_SINGLE_TREE_TRAVERSER_IMPL_HPP
 #define MLPACK_CORE_TREE_OCTREE_SINGLE_TREE_TRAVERSER_IMPL_HPP
diff --git a/src/mlpack/core/tree/octree/traits.hpp b/src/mlpack/core/tree/octree/traits.hpp
index 4a0f956..6273739 100644
--- a/src/mlpack/core/tree/octree/traits.hpp
+++ b/src/mlpack/core/tree/octree/traits.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Specialization of the TreeTraits class for the Octree class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_OCTREE_TRAITS_HPP
 #define MLPACK_CORE_TREE_OCTREE_TRAITS_HPP
diff --git a/src/mlpack/core/tree/perform_split.hpp b/src/mlpack/core/tree/perform_split.hpp
index ff14028..f8449dd 100644
--- a/src/mlpack/core/tree/perform_split.hpp
+++ b/src/mlpack/core/tree/perform_split.hpp
@@ -7,6 +7,11 @@
  * the dataset such that points that belong to the left subtree are on the left
  * of the split column, and points from the right subtree are on the right side
  * of the split column.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_PERFORM_SPLIT_HPP
 #define MLPACK_CORE_TREE_PERFORM_SPLIT_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree.hpp b/src/mlpack/core/tree/rectangle_tree.hpp
index 8bb8160..f6530ee 100644
--- a/src/mlpack/core/tree/rectangle_tree.hpp
+++ b/src/mlpack/core/tree/rectangle_tree.hpp
@@ -4,6 +4,11 @@
  *
  * Include all the necessary files to use the Rectangle Type Trees (RTree,
  * RStarTree, XTree, and HilbertRTree).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/discrete_hilbert_value.hpp b/src/mlpack/core/tree/rectangle_tree/discrete_hilbert_value.hpp
index 4c96f53..beb9158 100644
--- a/src/mlpack/core/tree/rectangle_tree/discrete_hilbert_value.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/discrete_hilbert_value.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of the DiscreteHilbertValue class, a class that calculates
  * the ordering of points using the Hilbert curve.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_DISCRETE_HILBERT_VALUE_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_DISCRETE_HILBERT_VALUE_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/discrete_hilbert_value_impl.hpp b/src/mlpack/core/tree/rectangle_tree/discrete_hilbert_value_impl.hpp
index d22d26a..fc42ba2 100644
--- a/src/mlpack/core/tree/rectangle_tree/discrete_hilbert_value_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/discrete_hilbert_value_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of the DiscreteHilbertValue class, a class that calculates
  * the ordering of points using the Hilbert curve.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_DISCRETE_HILBERT_VALUE_IMPL_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_DISCRETE_HILBERT_VALUE_IMPL_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/dual_tree_traverser.hpp b/src/mlpack/core/tree/rectangle_tree/dual_tree_traverser.hpp
index fd44522..a329a8b 100644
--- a/src/mlpack/core/tree/rectangle_tree/dual_tree_traverser.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/dual_tree_traverser.hpp
@@ -1,11 +1,16 @@
 /**
-  * @file dual_tree_traverser.hpp
-  * @author Andrew Wells
-  *
-  * A nested class of Rectangle Tree for traversing rectangle type trees
-  * with a given set of rules which indicate the branches to prune and the
-  * order in which to recurse.  This is just here to make it compile.
-  */
+ * @file dual_tree_traverser.hpp
+ * @author Andrew Wells
+ *
+ * A nested class of Rectangle Tree for traversing rectangle type trees
+ * with a given set of rules which indicate the branches to prune and the
+ * order in which to recurse.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
+ */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_DUAL_TREE_TRAVERSER_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_DUAL_TREE_TRAVERSER_HPP
 
diff --git a/src/mlpack/core/tree/rectangle_tree/dual_tree_traverser_impl.hpp b/src/mlpack/core/tree/rectangle_tree/dual_tree_traverser_impl.hpp
index 1ee5c6a..ebbedd6 100644
--- a/src/mlpack/core/tree/rectangle_tree/dual_tree_traverser_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/dual_tree_traverser_impl.hpp
@@ -1,11 +1,16 @@
 /**
-  * @file dual_tree_traverser_impl.hpp
-  * @author Andrew Wells
-  *
-  * A class for traversing rectangle type trees with a given set of rules
-  * which indicate the branches to prune and the order in which to recurse.
-  * This is a depth-first traverser.
-  */
+ * @file dual_tree_traverser_impl.hpp
+ * @author Andrew Wells
+ *
+ * A class for traversing rectangle type trees with a given set of rules
+ * which indicate the branches to prune and the order in which to recurse.
+ * This is a depth-first traverser.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
+ */
 #ifndef MLPAC_CORE_TREE_RECTANGLE_TREE_DUAL_TREE_TRAVERSER_IMPL_HPP
 #define MLPAC_CORE_TREE_RECTANGLE_TREE_DUAL_TREE_TRAVERSER_IMPL_HPP
 
diff --git a/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_auxiliary_information.hpp b/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_auxiliary_information.hpp
index ad15882..c80e2d0 100644
--- a/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_auxiliary_information.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_auxiliary_information.hpp
@@ -5,6 +5,11 @@
  * Definition of the HilbertRTreeAuxiliaryInformation class,
  * a class that provides some Hilbert r-tree specific information
  * about the nodes.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_HILBERT_R_TREE_AUXILIARY_INFORMATION_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_HILBERT_R_TREE_AUXILIARY_INFORMATION_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_auxiliary_information_impl.hpp b/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_auxiliary_information_impl.hpp
index 73689bf..2fceeed 100644
--- a/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_auxiliary_information_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_auxiliary_information_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of the HilbertRTreeAuxiliaryInformation class, a class that
  * provides some Hilbert r-tree specific information about the nodes.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_HILBERT_R_TREE_AUXILIARY_INFORMATION_IMPL_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_HILBERT_R_TREE_AUXILIARY_INFORMATION_IMPL_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_descent_heuristic.hpp b/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_descent_heuristic.hpp
index 2a01e63..4d749e4 100644
--- a/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_descent_heuristic.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_descent_heuristic.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of HilbertRTreeDescentHeuristic, a class that chooses the best
  * child of a node in an R tree when inserting a new point.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_HILBERT_R_TREE_DESCENT_HEURISTIC_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_HILBERT_R_TREE_DESCENT_HEURISTIC_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_descent_heuristic_impl.hpp b/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_descent_heuristic_impl.hpp
index 052d501..b7f4e08 100644
--- a/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_descent_heuristic_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_descent_heuristic_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of HilbertRTreeDescentHeuristic, a class that chooses the best
  * child of a node in an R tree when inserting a new point.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_HILBERT_R_TREE_DESCENT_HEURISTIC_IMPL_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_HILBERT_R_TREE_DESCENT_HEURISTIC_IMPL_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_split.hpp b/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_split.hpp
index bda835d..85eafdd 100644
--- a/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_split.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_split.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of the HilbertRTreeSplit class, a class that splits the nodes of an R
  * tree, starting at a leaf node and moving upwards if necessary.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_HILBERT_R_TREE_SPLIT_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_HILBERT_R_TREE_SPLIT_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_split_impl.hpp b/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_split_impl.hpp
index 12ba1ae..32ca6b3 100644
--- a/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_split_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/hilbert_r_tree_split_impl.hpp
@@ -3,6 +3,11 @@
  * @author Mikhail Lozhnikov
  *
  * Implementation of class (HilbertRTreeSplit) to split a RectangleTree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_HILBERT_R_TREE_SPLIT_IMPL_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_HILBERT_R_TREE_SPLIT_IMPL_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/minimal_coverage_sweep.hpp b/src/mlpack/core/tree/rectangle_tree/minimal_coverage_sweep.hpp
index ab2f664..af43856 100644
--- a/src/mlpack/core/tree/rectangle_tree/minimal_coverage_sweep.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/minimal_coverage_sweep.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of the MinimalCoverageSweep class, a class that finds a partition
  * of a node along an axis.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_MINIMAL_COVERAGE_SWEEP_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_MINIMAL_COVERAGE_SWEEP_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/minimal_coverage_sweep_impl.hpp b/src/mlpack/core/tree/rectangle_tree/minimal_coverage_sweep_impl.hpp
index 66ceec5..a9efbce 100644
--- a/src/mlpack/core/tree/rectangle_tree/minimal_coverage_sweep_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/minimal_coverage_sweep_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of the MinimalCoverageSweep class, a class that finds a
  * partition of a node along an axis.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_MINIMAL_COVERAGE_SWEEP_IMPL_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_MINIMAL_COVERAGE_SWEEP_IMPL_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/minimal_splits_number_sweep.hpp b/src/mlpack/core/tree/rectangle_tree/minimal_splits_number_sweep.hpp
index 7134db8..c8b9903 100644
--- a/src/mlpack/core/tree/rectangle_tree/minimal_splits_number_sweep.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/minimal_splits_number_sweep.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of the MinimalSplitsNumberSweep class, a class that finds a
  * partition of a node along an axis.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_MINIMAL_SPLITS_NUMBER_SWEEP_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_MINIMAL_SPLITS_NUMBER_SWEEP_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/minimal_splits_number_sweep_impl.hpp b/src/mlpack/core/tree/rectangle_tree/minimal_splits_number_sweep_impl.hpp
index f320ac4..c0a57ee 100644
--- a/src/mlpack/core/tree/rectangle_tree/minimal_splits_number_sweep_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/minimal_splits_number_sweep_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of the MinimalSplitsNumberSweep class, a class that finds a
  * partition of a node along an axis.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_MINIMAL_SPLITS_NUMBER_SWEEP_IMPL_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_MINIMAL_SPLITS_NUMBER_SWEEP_IMPL_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/no_auxiliary_information.hpp b/src/mlpack/core/tree/rectangle_tree/no_auxiliary_information.hpp
index af424be..01d18db 100644
--- a/src/mlpack/core/tree/rectangle_tree/no_auxiliary_information.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/no_auxiliary_information.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of the NoAuxiliaryInformation class, a class that provides
  * no additional information about the nodes.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_NO_AUXILIARY_INFORMATION_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_NO_AUXILIARY_INFORMATION_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_auxiliary_information.hpp b/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_auxiliary_information.hpp
index c31d5a0..2611259 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_auxiliary_information.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_auxiliary_information.hpp
@@ -5,6 +5,11 @@
  * Definition of the RPlusPlusTreeAuxiliaryInformation class,
  * a class that provides some r++-tree specific information
  * about the nodes.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_PLUS_TREE_AUXILIARY_INFORMATION_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_PLUS_TREE_AUXILIARY_INFORMATION_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_auxiliary_information_impl.hpp b/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_auxiliary_information_impl.hpp
index 3494494..06f8bec 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_auxiliary_information_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_auxiliary_information_impl.hpp
@@ -5,6 +5,11 @@
  * Implementation of the RPlusPlusTreeAuxiliaryInformation class,
  * a class that provides some r++-tree specific information
  * about the nodes.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_PLUS_TREE_AUXILIARY_INFORMATION_IMPL_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_PLUS_TREE_AUXILIARY_INFORMATION_IMPL_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_descent_heuristic.hpp b/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_descent_heuristic.hpp
index 1f050bc..c656852 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_descent_heuristic.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_descent_heuristic.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of RPlusPlusTreeDescentHeuristic, a class that chooses the best
  * child of a node in an R++ tree when inserting a new point.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_PLUS_TREE_DESCENT_HEURISTIC_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_PLUS_TREE_DESCENT_HEURISTIC_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_descent_heuristic_impl.hpp b/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_descent_heuristic_impl.hpp
index 4e7142a..141ae03 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_descent_heuristic_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_descent_heuristic_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of RPlusPlusTreeDescentHeuristic, a class that chooses the
  * best child of a node in an R++ tree when inserting a new point.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_PLUS_TREE_DESCENT_HEURISTIC_IMPL_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_PLUS_TREE_DESCENT_HEURISTIC_IMPL_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_split_policy.hpp b/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_split_policy.hpp
index 0b7ae4e..d2c1bb1 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_split_policy.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_plus_plus_tree_split_policy.hpp
@@ -5,6 +5,11 @@
  * Definition and implementation of the RPlusPlusTreeSplitPolicy class, a class
  * that helps to determine the subtree into which we should insert an
  * intermediate node.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_PLUS_TREE_SPLIT_POLICY_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_PLUS_TREE_SPLIT_POLICY_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_plus_tree_descent_heuristic.hpp b/src/mlpack/core/tree/rectangle_tree/r_plus_tree_descent_heuristic.hpp
index f27feca..44cafdd 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_plus_tree_descent_heuristic.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_plus_tree_descent_heuristic.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of RPlusTreeDescentHeuristic, a class that chooses the best child
  * of a node in an R+ tree when inserting a new point.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_TREE_DESCENT_HEURISTIC_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_TREE_DESCENT_HEURISTIC_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_plus_tree_descent_heuristic_impl.hpp b/src/mlpack/core/tree/rectangle_tree/r_plus_tree_descent_heuristic_impl.hpp
index b951bed..6a61e91 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_plus_tree_descent_heuristic_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_plus_tree_descent_heuristic_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of HilbertRTreeDescentHeuristic, a class that chooses the best child
  * of a node in an R tree when inserting a new point.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_TREE_DESCENT_HEURISTIC_IMPL_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_TREE_DESCENT_HEURISTIC_IMPL_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_plus_tree_split.hpp b/src/mlpack/core/tree/rectangle_tree/r_plus_tree_split.hpp
index f32803e..701f522 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_plus_tree_split.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_plus_tree_split.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of the RPlusTreeSplit class, a class that splits the nodes of an
  * R+ (or R++) tree, starting at a leaf node and moving upwards if necessary.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_TREE_SPLIT_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_TREE_SPLIT_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_plus_tree_split_impl.hpp b/src/mlpack/core/tree/rectangle_tree/r_plus_tree_split_impl.hpp
index 64b4043..fc9171f 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_plus_tree_split_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_plus_tree_split_impl.hpp
@@ -3,6 +3,11 @@
  * @author Mikhail Lozhnikov
  *
  * Implementation of class (RPlusTreeSplit) to split a RectangleTree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_TREE_SPLIT_IMPL_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_TREE_SPLIT_IMPL_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_plus_tree_split_policy.hpp b/src/mlpack/core/tree/rectangle_tree/r_plus_tree_split_policy.hpp
index 1f082e0..0a60473 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_plus_tree_split_policy.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_plus_tree_split_policy.hpp
@@ -5,6 +5,11 @@
  * Definition and implementation of the RPlusTreeSplitPolicy class, a class that
  * helps to determine the subtree into which we should insert an intermediate
  * node.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_TREE_SPLIT_POLICY_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_PLUS_TREE_SPLIT_POLICY_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_star_tree_descent_heuristic.hpp b/src/mlpack/core/tree/rectangle_tree/r_star_tree_descent_heuristic.hpp
index 175b5da..0dcb844 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_star_tree_descent_heuristic.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_star_tree_descent_heuristic.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of RStarTreeDescentHeuristic, a class that chooses the best child
  * of a node in an R tree when inserting a new point.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_STAR_TREE_DESCENT_HEURISTIC_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_STAR_TREE_DESCENT_HEURISTIC_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_star_tree_descent_heuristic_impl.hpp b/src/mlpack/core/tree/rectangle_tree/r_star_tree_descent_heuristic_impl.hpp
index 16b454a..52bde99 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_star_tree_descent_heuristic_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_star_tree_descent_heuristic_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of RStarTreeDescentHeuristic, a class that chooses the best child of a node in
  * an R tree when inserting a new point.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_STAR_TREE_DESCENT_HEURISTIC_IMPL_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_STAR_TREE_DESCENT_HEURISTIC_IMPL_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_star_tree_split.hpp b/src/mlpack/core/tree/rectangle_tree/r_star_tree_split.hpp
index d672632..16868bd 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_star_tree_split.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_star_tree_split.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of the RStarTreeSplit class, a class that splits the nodes of an R tree, starting
  * at a leaf node and moving upwards if necessary.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_STAR_TREE_SPLIT_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_STAR_TREE_SPLIT_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_star_tree_split_impl.hpp b/src/mlpack/core/tree/rectangle_tree/r_star_tree_split_impl.hpp
index 862bec6..d5669a6 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_star_tree_split_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_star_tree_split_impl.hpp
@@ -3,6 +3,11 @@
  * @author Andrew Wells
  *
  * Implementation of class (RStarTreeSplit) to split a RectangleTree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_STAR_TREE_SPLIT_IMPL_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_STAR_TREE_SPLIT_IMPL_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic.hpp b/src/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic.hpp
index 9254a42..8fd635a 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of RTreeDescentHeuristic, a class that chooses the best child of a
  * node in an R tree when inserting a new point.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_TREE_DESCENT_HEURISTIC_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_TREE_DESCENT_HEURISTIC_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp b/src/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp
index 37d764f..abb0456 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_tree_descent_heuristic_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of RTreeDescentHeuristic, a class that chooses the best child
  * of a node in an R tree when inserting a new point.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_TREE_DESCENT_HEURISTIC_IMPL_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_TREE_DESCENT_HEURISTIC_IMPL_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_tree_split.hpp b/src/mlpack/core/tree/rectangle_tree/r_tree_split.hpp
index 53392e2..67aa28d 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_tree_split.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_tree_split.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of the RTreeSplit class, a class that splits the nodes of an R
  * tree, starting at a leaf node and moving upwards if necessary.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_TREE_SPLIT_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_TREE_SPLIT_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp b/src/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp
index 31ebda4..c64c455 100644
--- a/src/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/r_tree_split_impl.hpp
@@ -3,6 +3,11 @@
  * @author Andrew Wells
  *
  * Implementation of class (RTreeSplit) to split a RectangleTree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_R_TREE_SPLIT_IMPL_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_R_TREE_SPLIT_IMPL_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp b/src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp
index 129000f..b73b8e1 100644
--- a/src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/rectangle_tree.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of generalized rectangle type trees (r_tree, r_star_tree, x_tree,
  * and hilbert_r_tree).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_RECTANGLE_TREE_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_RECTANGLE_TREE_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp b/src/mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp
index 8318091..5b4295b 100644
--- a/src/mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/rectangle_tree_impl.hpp
@@ -3,6 +3,11 @@
  * @author Andrew Wells
  *
  * Implementation of generalized rectangle tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_RECTANGLE_TREE_IMPL_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_RECTANGLE_TREE_IMPL_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/single_tree_traverser.hpp b/src/mlpack/core/tree/rectangle_tree/single_tree_traverser.hpp
index 2b10e73..229d992 100644
--- a/src/mlpack/core/tree/rectangle_tree/single_tree_traverser.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/single_tree_traverser.hpp
@@ -1,11 +1,16 @@
 /**
-  * @file single_tree_traverser.hpp
-  * @author Andrew Wells
-  *
-  * A nested class of Rectangle Tree for traversing rectangle type trees
-  * with a given set of rules which indicate the branches to prune and the
-  * order in which to recurse.  This is a depth-first traverser.
-  */
+ * @file single_tree_traverser.hpp
+ * @author Andrew Wells
+ *
+ * A nested class of Rectangle Tree for traversing rectangle type trees
+ * with a given set of rules which indicate the branches to prune and the
+ * order in which to recurse.  This is a depth-first traverser.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
+ */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_SINGLE_TREE_TRAVERSER_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_SINGLE_TREE_TRAVERSER_HPP
 
diff --git a/src/mlpack/core/tree/rectangle_tree/single_tree_traverser_impl.hpp b/src/mlpack/core/tree/rectangle_tree/single_tree_traverser_impl.hpp
index c47f52b..4aa10c3 100644
--- a/src/mlpack/core/tree/rectangle_tree/single_tree_traverser_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/single_tree_traverser_impl.hpp
@@ -1,11 +1,16 @@
 /**
-  * @file single_tree_traverser_impl.hpp
-  * @author Andrew Wells
-  *
-  * A class for traversing rectangle type trees with a given set of rules
-  * which indicate the branches to prune and the order in which to recurse.
-  * This is a depth-first traverser.
-  */
+ * @file single_tree_traverser_impl.hpp
+ * @author Andrew Wells
+ *
+ * A class for traversing rectangle type trees with a given set of rules
+ * which indicate the branches to prune and the order in which to recurse.
+ * This is a depth-first traverser.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
+ */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_SINGLE_TREE_TRAVERSER_IMPL_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_SINGLE_TREE_TRAVERSER_IMPL_HPP
 
diff --git a/src/mlpack/core/tree/rectangle_tree/traits.hpp b/src/mlpack/core/tree/rectangle_tree/traits.hpp
index e592b5d..c14d37b 100644
--- a/src/mlpack/core/tree/rectangle_tree/traits.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/traits.hpp
@@ -3,6 +3,11 @@
  * @author Andrew Wells
  *
  * Specialization of the TreeTraits class for the RectangleTree type of tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_TRAITS_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_TRAITS_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/typedef.hpp b/src/mlpack/core/tree/rectangle_tree/typedef.hpp
index 1994afd..20bbfdc 100644
--- a/src/mlpack/core/tree/rectangle_tree/typedef.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/typedef.hpp
@@ -4,6 +4,11 @@
  *
  * Typedefs of RectangleTrees, for use by classes that require trees matching
  * the TreeType API.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_TYPEDEF_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_TYPEDEF_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/x_tree_auxiliary_information.hpp b/src/mlpack/core/tree/rectangle_tree/x_tree_auxiliary_information.hpp
index 7a1f2f2..bff090c 100644
--- a/src/mlpack/core/tree/rectangle_tree/x_tree_auxiliary_information.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/x_tree_auxiliary_information.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of the XTreeAuxiliaryInformation class, a class that provides
  * some x-tree specific information about the nodes.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_X_TREE_AUXILIARY_INFORMATION_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_X_TREE_AUXILIARY_INFORMATION_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/x_tree_split.hpp b/src/mlpack/core/tree/rectangle_tree/x_tree_split.hpp
index 16828a0..080376f 100644
--- a/src/mlpack/core/tree/rectangle_tree/x_tree_split.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/x_tree_split.hpp
@@ -6,6 +6,11 @@
  * tree, starting at a leaf node and moving upwards if necessary.
  *
  * This is known to have a bug: see #368.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_X_TREE_SPLIT_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_X_TREE_SPLIT_HPP
diff --git a/src/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp b/src/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp
index 28e74cb..a8f6dc8 100644
--- a/src/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp
@@ -3,6 +3,11 @@
  * @author Andrew Wells
  *
  * Implementation of class (XTreeSplit) to split a RectangleTree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_RECTANGLE_TREE_X_TREE_SPLIT_IMPL_HPP
 #define MLPACK_CORE_TREE_RECTANGLE_TREE_X_TREE_SPLIT_IMPL_HPP
diff --git a/src/mlpack/core/tree/space_split/hyperplane.hpp b/src/mlpack/core/tree/space_split/hyperplane.hpp
index 850e5e0..befa0fd 100644
--- a/src/mlpack/core/tree/space_split/hyperplane.hpp
+++ b/src/mlpack/core/tree/space_split/hyperplane.hpp
@@ -3,6 +3,11 @@
  * @author Marcos Pividori
  *
  * Definition of Hyperplane and AxisOrthogonalHyperplane.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_HYPERPLANE_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_HYPERPLANE_HPP
diff --git a/src/mlpack/core/tree/space_split/mean_space_split.hpp b/src/mlpack/core/tree/space_split/mean_space_split.hpp
index d405d42..3d220d2 100644
--- a/src/mlpack/core/tree/space_split/mean_space_split.hpp
+++ b/src/mlpack/core/tree/space_split/mean_space_split.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of MeanSpaceSplit, to create a splitting hyperplane considering
  * the mean of the values in a certain projection.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_MEAN_SPACE_SPLIT_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_MEAN_SPACE_SPLIT_HPP
diff --git a/src/mlpack/core/tree/space_split/mean_space_split_impl.hpp b/src/mlpack/core/tree/space_split/mean_space_split_impl.hpp
index 0f5f23e..158ed5b 100644
--- a/src/mlpack/core/tree/space_split/mean_space_split_impl.hpp
+++ b/src/mlpack/core/tree/space_split/mean_space_split_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of MeanSpaceSplit, to create a splitting hyperplane
  * considering the midpoint/mean of the values in a certain projection.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_MEAN_SPACE_SPLIT_IMPL_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_MEAN_SPACE_SPLIT_IMPL_HPP
diff --git a/src/mlpack/core/tree/space_split/midpoint_space_split.hpp b/src/mlpack/core/tree/space_split/midpoint_space_split.hpp
index e239d66..a0eb0a6 100644
--- a/src/mlpack/core/tree/space_split/midpoint_space_split.hpp
+++ b/src/mlpack/core/tree/space_split/midpoint_space_split.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of MidpointSpaceSplit, to create a splitting hyperplane
  * considering the midpoint of the values in a certain projection.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_MIDPOINT_SPACE_SPLIT_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_MIDPOINT_SPACE_SPLIT_HPP
diff --git a/src/mlpack/core/tree/space_split/midpoint_space_split_impl.hpp b/src/mlpack/core/tree/space_split/midpoint_space_split_impl.hpp
index 39c8f8e..80eca93 100644
--- a/src/mlpack/core/tree/space_split/midpoint_space_split_impl.hpp
+++ b/src/mlpack/core/tree/space_split/midpoint_space_split_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of MidpointSpaceSplit, to create a splitting hyperplane
  * considering the midpoint of the values in a certain projection.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_MIDPOINT_SPACE_SPLIT_IMPL_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_MIDPOINT_SPACE_SPLIT_IMPL_HPP
diff --git a/src/mlpack/core/tree/space_split/projection_vector.hpp b/src/mlpack/core/tree/space_split/projection_vector.hpp
index 39f2453..824b9df 100644
--- a/src/mlpack/core/tree/space_split/projection_vector.hpp
+++ b/src/mlpack/core/tree/space_split/projection_vector.hpp
@@ -3,6 +3,11 @@
  * @author Marcos Pividori
  *
  * Definition of ProjVector and AxisParallelProjVector.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_PROJECTION_VECTOR_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_PROJECTION_VECTOR_HPP
diff --git a/src/mlpack/core/tree/space_split/space_split.hpp b/src/mlpack/core/tree/space_split/space_split.hpp
index c4c526d..2f1f47d 100644
--- a/src/mlpack/core/tree/space_split/space_split.hpp
+++ b/src/mlpack/core/tree/space_split/space_split.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of SpaceSplit, implementing some methods to create a projection
  * vector based on a given set of points.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_SPACE_SPLIT_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_SPACE_SPLIT_HPP
diff --git a/src/mlpack/core/tree/space_split/space_split_impl.hpp b/src/mlpack/core/tree/space_split/space_split_impl.hpp
index 94f82d8..98f4ee0 100644
--- a/src/mlpack/core/tree/space_split/space_split_impl.hpp
+++ b/src/mlpack/core/tree/space_split/space_split_impl.hpp
@@ -4,6 +4,11 @@
  *
  * Implementation of SpaceSplit, to create a projection vector based on a given
  * set of points.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_SPACE_SPLIT_IMPL_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_SPACE_SPLIT_IMPL_HPP
diff --git a/src/mlpack/core/tree/spill_tree.hpp b/src/mlpack/core/tree/spill_tree.hpp
index a498be5..592fb97 100644
--- a/src/mlpack/core/tree/spill_tree.hpp
+++ b/src/mlpack/core/tree/spill_tree.hpp
@@ -3,6 +3,11 @@
  * @author Marcos Pividori
  *
  * Include all the necessary files to use the SpillTree class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_HPP
diff --git a/src/mlpack/core/tree/spill_tree/is_spill_tree.hpp b/src/mlpack/core/tree/spill_tree/is_spill_tree.hpp
index a9a4e35..4548ffc 100644
--- a/src/mlpack/core/tree/spill_tree/is_spill_tree.hpp
+++ b/src/mlpack/core/tree/spill_tree/is_spill_tree.hpp
@@ -2,6 +2,11 @@
  * @file is_spill_tree.hpp
  *
  * Definition of IsSpillTree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_IS_SPILL_TREE_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_IS_SPILL_TREE_HPP
diff --git a/src/mlpack/core/tree/spill_tree/spill_dual_tree_traverser.hpp b/src/mlpack/core/tree/spill_tree/spill_dual_tree_traverser.hpp
index 0e3b732..87246fa 100644
--- a/src/mlpack/core/tree/spill_tree/spill_dual_tree_traverser.hpp
+++ b/src/mlpack/core/tree/spill_tree/spill_dual_tree_traverser.hpp
@@ -9,6 +9,11 @@
  * pruned and the order in which to recurse.
  * The Defeatist template parameter determines if the traversers must do
  * defeatist search on overlapping nodes.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_SPILL_DUAL_TREE_TRAVERSER_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_SPILL_DUAL_TREE_TRAVERSER_HPP
diff --git a/src/mlpack/core/tree/spill_tree/spill_dual_tree_traverser_impl.hpp b/src/mlpack/core/tree/spill_tree/spill_dual_tree_traverser_impl.hpp
index fafbdfa..1db72f5 100644
--- a/src/mlpack/core/tree/spill_tree/spill_dual_tree_traverser_impl.hpp
+++ b/src/mlpack/core/tree/spill_tree/spill_dual_tree_traverser_impl.hpp
@@ -6,6 +6,11 @@
  * Implementation of the SpillDualTreeTraverser for SpillTree.  This is a way
  * to perform a dual-tree traversal of two trees.  The trees must be the same
  * type.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_SPILL_DUAL_TREE_TRAVERSER_IMPL_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_SPILL_DUAL_TREE_TRAVERSER_IMPL_HPP
diff --git a/src/mlpack/core/tree/spill_tree/spill_single_tree_traverser.hpp b/src/mlpack/core/tree/spill_tree/spill_single_tree_traverser.hpp
index e2debe5..09704a2 100644
--- a/src/mlpack/core/tree/spill_tree/spill_single_tree_traverser.hpp
+++ b/src/mlpack/core/tree/spill_tree/spill_single_tree_traverser.hpp
@@ -8,6 +8,11 @@
  * order in which to recurse.  This traverser is a depth-first traverser.
  * The Defeatist template parameter determines if the traversers must do
  * defeatist search on overlapping nodes.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_SPILL_SINGLE_TREE_TRAVERSER_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_SPILL_SINGLE_TREE_TRAVERSER_HPP
diff --git a/src/mlpack/core/tree/spill_tree/spill_single_tree_traverser_impl.hpp b/src/mlpack/core/tree/spill_tree/spill_single_tree_traverser_impl.hpp
index 568ed13..b8478bb 100644
--- a/src/mlpack/core/tree/spill_tree/spill_single_tree_traverser_impl.hpp
+++ b/src/mlpack/core/tree/spill_tree/spill_single_tree_traverser_impl.hpp
@@ -6,6 +6,11 @@
  * A nested class of SpillTree which traverses the entire tree with a
  * given set of rules which indicate the branches which can be pruned and the
  * order in which to recurse.  This traverser is a depth-first traverser.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_SPILL_SINGLE_TREE_TRAVERSER_IMPL_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_SPILL_SINGLE_TREE_TRAVERSER_IMPL_HPP
diff --git a/src/mlpack/core/tree/spill_tree/spill_tree.hpp b/src/mlpack/core/tree/spill_tree/spill_tree.hpp
index 305cf23..084c808 100644
--- a/src/mlpack/core/tree/spill_tree/spill_tree.hpp
+++ b/src/mlpack/core/tree/spill_tree/spill_tree.hpp
@@ -2,6 +2,11 @@
  * @file spill_tree.hpp
  *
  * Definition of generalized hybrid spill tree (SpillTree).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_SPILL_TREE_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_SPILL_TREE_HPP
diff --git a/src/mlpack/core/tree/spill_tree/spill_tree_impl.hpp b/src/mlpack/core/tree/spill_tree/spill_tree_impl.hpp
index 1017f27..eb0a670 100644
--- a/src/mlpack/core/tree/spill_tree/spill_tree_impl.hpp
+++ b/src/mlpack/core/tree/spill_tree/spill_tree_impl.hpp
@@ -2,6 +2,11 @@
  * @file spill_tree_impl.hpp
  *
  * Implementation of generalized hybrid spill tree (SpillTree).
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_SPILL_TREE_IMPL_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_SPILL_TREE_IMPL_HPP
diff --git a/src/mlpack/core/tree/spill_tree/traits.hpp b/src/mlpack/core/tree/spill_tree/traits.hpp
index f3bf262..5c3b1ab 100644
--- a/src/mlpack/core/tree/spill_tree/traits.hpp
+++ b/src/mlpack/core/tree/spill_tree/traits.hpp
@@ -4,6 +4,11 @@
  * @author Marcos Pividori
  *
  * Specialization of the TreeTraits class for the SpillTree type of tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_TRAITS_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_TRAITS_HPP
diff --git a/src/mlpack/core/tree/spill_tree/typedef.hpp b/src/mlpack/core/tree/spill_tree/typedef.hpp
index 6773442..1a8f012 100644
--- a/src/mlpack/core/tree/spill_tree/typedef.hpp
+++ b/src/mlpack/core/tree/spill_tree/typedef.hpp
@@ -5,6 +5,11 @@
  *
  * Template typedefs for the SpillTree class that satisfy the requirements
  * of the TreeType policy class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_SPILL_TREE_TYPEDEF_HPP
 #define MLPACK_CORE_TREE_SPILL_TREE_TYPEDEF_HPP
diff --git a/src/mlpack/core/tree/statistic.hpp b/src/mlpack/core/tree/statistic.hpp
index baf7064..706f512 100644
--- a/src/mlpack/core/tree/statistic.hpp
+++ b/src/mlpack/core/tree/statistic.hpp
@@ -4,6 +4,11 @@
  * Definition of the policy type for the statistic class.
  *
  * You should define your own statistic that looks like EmptyStatistic.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 
 #ifndef MLPACK_CORE_TREE_STATISTIC_HPP
diff --git a/src/mlpack/core/tree/traversal_info.hpp b/src/mlpack/core/tree/traversal_info.hpp
index 4ad0184..1307f1a 100644
--- a/src/mlpack/core/tree/traversal_info.hpp
+++ b/src/mlpack/core/tree/traversal_info.hpp
@@ -5,6 +5,11 @@
  * This class will hold the traversal information for dual-tree traversals.  A
  * dual-tree traversal should be updating the members of this class before
  * Score() is called.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_TRAVERSAL_INFO_HPP
 #define MLPACK_CORE_TREE_TRAVERSAL_INFO_HPP
diff --git a/src/mlpack/core/tree/tree_traits.hpp b/src/mlpack/core/tree/tree_traits.hpp
index b00a186..627a3f9 100644
--- a/src/mlpack/core/tree/tree_traits.hpp
+++ b/src/mlpack/core/tree/tree_traits.hpp
@@ -5,6 +5,11 @@
  * This file implements the basic, unspecialized TreeTraits class, which
  * provides information about tree types.  If you create a tree class, you
  * should specialize this class with the characteristics of your tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_TREE_TREE_TRAITS_HPP
 #define MLPACK_CORE_TREE_TREE_TRAITS_HPP
diff --git a/src/mlpack/core/util/arma_config_check.hpp b/src/mlpack/core/util/arma_config_check.hpp
index ce6f4b6..bd9d6bf 100644
--- a/src/mlpack/core/util/arma_config_check.hpp
+++ b/src/mlpack/core/util/arma_config_check.hpp
@@ -7,6 +7,11 @@
  * without ARMA_64BIT_WORD enabled.  This should help prevent a long, drawn-out
  * debugging process where nobody can figure out why the stack is getting
  * mangled.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_UTIL_ARMA_CONFIG_CHECK_HPP
 #define MLPACK_CORE_UTIL_ARMA_CONFIG_CHECK_HPP
diff --git a/src/mlpack/core/util/arma_traits.hpp b/src/mlpack/core/util/arma_traits.hpp
index c311759..85e73ca 100644
--- a/src/mlpack/core/util/arma_traits.hpp
+++ b/src/mlpack/core/util/arma_traits.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Some traits used for template metaprogramming (SFINAE) with Armadillo types.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_UTIL_ARMA_TRAITS_HPP
 #define MLPACK_CORE_UTIL_ARMA_TRAITS_HPP
diff --git a/src/mlpack/core/util/backtrace.cpp b/src/mlpack/core/util/backtrace.cpp
index e1cbc85..d1c764f 100644
--- a/src/mlpack/core/util/backtrace.cpp
+++ b/src/mlpack/core/util/backtrace.cpp
@@ -3,6 +3,11 @@
  * @author Grzegorz Krajewski
  *
  * Implementation of the Backtrace class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include <sstream>
 
diff --git a/src/mlpack/core/util/backtrace.hpp b/src/mlpack/core/util/backtrace.hpp
index bf45324..51acdfa 100644
--- a/src/mlpack/core/util/backtrace.hpp
+++ b/src/mlpack/core/util/backtrace.hpp
@@ -3,6 +3,11 @@
  * @author Grzegorz Krajewski
  *
  * Definition of the Backtrace class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef __MLPACK_CORE_UTIL_BACKTRACE_HPP
 #define __MLPACK_CORE_UTIL_BACKTRACE_HPP
diff --git a/src/mlpack/core/util/cli.cpp b/src/mlpack/core/util/cli.cpp
index a90e93d..fe3e418 100644
--- a/src/mlpack/core/util/cli.cpp
+++ b/src/mlpack/core/util/cli.cpp
@@ -3,6 +3,11 @@
  * @author Matthew Amidon
  *
  * Implementation of the CLI module for parsing parameters.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include <list>
 #include <boost/program_options.hpp>
diff --git a/src/mlpack/core/util/cli.hpp b/src/mlpack/core/util/cli.hpp
index f53ef0e..e55a9ed 100644
--- a/src/mlpack/core/util/cli.hpp
+++ b/src/mlpack/core/util/cli.hpp
@@ -5,6 +5,11 @@
  * This file implements the CLI subsystem which is intended to replace FX.
  * This can be used more or less regardless of context.  In the future,
  * it might be expanded to include file I/O.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_UTIL_CLI_HPP
 #define MLPACK_CORE_UTIL_CLI_HPP
diff --git a/src/mlpack/core/util/cli_deleter.cpp b/src/mlpack/core/util/cli_deleter.cpp
index dbb95e6..a7eda7d 100644
--- a/src/mlpack/core/util/cli_deleter.cpp
+++ b/src/mlpack/core/util/cli_deleter.cpp
@@ -7,6 +7,11 @@
  * 'CLI::Destroy()' at the end of their program.  The file also defines a static
  * CLIDeleter class, which will be initialized at the beginning of the program
  * and deleted at the end.  The destructor destroys the CLI singleton.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "cli_deleter.hpp"
 #include "cli.hpp"
diff --git a/src/mlpack/core/util/cli_deleter.hpp b/src/mlpack/core/util/cli_deleter.hpp
index f1c0193..9d8504c 100644
--- a/src/mlpack/core/util/cli_deleter.hpp
+++ b/src/mlpack/core/util/cli_deleter.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Definition of the CLIDeleter() class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_UTIL_CLI_DELETER_HPP
 #define MLPACK_CORE_UTIL_CLI_DELETER_HPP
diff --git a/src/mlpack/core/util/cli_impl.hpp b/src/mlpack/core/util/cli_impl.hpp
index c4d6cf2..d235d1c 100644
--- a/src/mlpack/core/util/cli_impl.hpp
+++ b/src/mlpack/core/util/cli_impl.hpp
@@ -3,6 +3,11 @@
  * @author Matthew Amidon
  *
  * Implementation of templated functions of the CLI class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_UTIL_CLI_IMPL_HPP
 #define MLPACK_CORE_UTIL_CLI_IMPL_HPP
diff --git a/src/mlpack/core/util/deprecated.hpp b/src/mlpack/core/util/deprecated.hpp
index f98d516..b48ae50 100644
--- a/src/mlpack/core/util/deprecated.hpp
+++ b/src/mlpack/core/util/deprecated.hpp
@@ -3,6 +3,11 @@
  * @author Marcos Pividori.
  *
  * Definition of the mlpack_deprecated macro.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_UTIL_DEPRECATED_HPP
 #define MLPACK_CORE_UTIL_DEPRECATED_HPP
diff --git a/src/mlpack/core/util/log.cpp b/src/mlpack/core/util/log.cpp
index 6189f17..ca7b662 100644
--- a/src/mlpack/core/util/log.cpp
+++ b/src/mlpack/core/util/log.cpp
@@ -3,6 +3,11 @@
  * @author Matthew Amidon
  *
  * Implementation of the Log class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "log.hpp"
 
diff --git a/src/mlpack/core/util/log.hpp b/src/mlpack/core/util/log.hpp
index 4602479..87cdd55 100644
--- a/src/mlpack/core/util/log.hpp
+++ b/src/mlpack/core/util/log.hpp
@@ -3,6 +3,11 @@
  * @author Matthew Amidon
  *
  * Definition of the Log class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_UTIL_LOG_HPP
 #define MLPACK_CORE_UTIL_LOG_HPP
diff --git a/src/mlpack/core/util/nulloutstream.hpp b/src/mlpack/core/util/nulloutstream.hpp
index de4c95b..2e2da94 100644
--- a/src/mlpack/core/util/nulloutstream.hpp
+++ b/src/mlpack/core/util/nulloutstream.hpp
@@ -4,6 +4,11 @@
  * @author Matthew Amidon
  *
  * Definition of the NullOutStream class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_UTIL_NULLOUTSTREAM_HPP
 #define MLPACK_CORE_UTIL_NULLOUTSTREAM_HPP
diff --git a/src/mlpack/core/util/option.cpp b/src/mlpack/core/util/option.cpp
index d516f9a..810f3c1 100644
--- a/src/mlpack/core/util/option.cpp
+++ b/src/mlpack/core/util/option.cpp
@@ -4,6 +4,11 @@
  *
  * Implementation of the ProgramDoc class.  The class registers itself with CLI
  * when constructed.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "cli.hpp"
 #include "option.hpp"
diff --git a/src/mlpack/core/util/option.hpp b/src/mlpack/core/util/option.hpp
index 9f04cfd..2767587 100644
--- a/src/mlpack/core/util/option.hpp
+++ b/src/mlpack/core/util/option.hpp
@@ -4,6 +4,11 @@
  *
  * Definition of the Option class, which is used to define parameters which are
  * used by CLI.  The ProgramDoc class also resides here.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_UTIL_OPTION_HPP
 #define MLPACK_CORE_UTIL_OPTION_HPP
diff --git a/src/mlpack/core/util/option_impl.hpp b/src/mlpack/core/util/option_impl.hpp
index 56a8128..b9d5e8e 100644
--- a/src/mlpack/core/util/option_impl.hpp
+++ b/src/mlpack/core/util/option_impl.hpp
@@ -3,6 +3,11 @@
  * @author Matthew Amidon
  *
  * Implementation of template functions for the Option class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_UTIL_OPTION_IMPL_HPP
 #define MLPACK_CORE_UTIL_OPTION_IMPL_HPP
diff --git a/src/mlpack/core/util/param.hpp b/src/mlpack/core/util/param.hpp
index 88c83c1..f13a52a 100644
--- a/src/mlpack/core/util/param.hpp
+++ b/src/mlpack/core/util/param.hpp
@@ -6,6 +6,11 @@
  * Definition of PARAM_*_IN() and PARAM_*_OUT() macros, as well as the
  * PROGRAM_INFO() macro, which are used to define input and output parameters of
  * command-line programs and bindings to other languages.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_UTIL_PARAM_HPP
 #define MLPACK_CORE_UTIL_PARAM_HPP
diff --git a/src/mlpack/core/util/prefixedoutstream.cpp b/src/mlpack/core/util/prefixedoutstream.cpp
index e119296..210b8b3 100644
--- a/src/mlpack/core/util/prefixedoutstream.cpp
+++ b/src/mlpack/core/util/prefixedoutstream.cpp
@@ -4,6 +4,11 @@
  * @author Matthew Amidon
  *
  * Implementation of PrefixedOutStream methods.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include <string>
 #include <iostream>
diff --git a/src/mlpack/core/util/prefixedoutstream.hpp b/src/mlpack/core/util/prefixedoutstream.hpp
index e2370ca..4b04297 100644
--- a/src/mlpack/core/util/prefixedoutstream.hpp
+++ b/src/mlpack/core/util/prefixedoutstream.hpp
@@ -4,6 +4,11 @@
  * @author Matthew Amidon
  *
  * Declaration of the PrefixedOutStream class.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_UTIL_PREFIXEDOUTSTREAM_HPP
 #define MLPACK_CORE_UTIL_PREFIXEDOUTSTREAM_HPP
diff --git a/src/mlpack/core/util/prefixedoutstream_impl.hpp b/src/mlpack/core/util/prefixedoutstream_impl.hpp
index 7f21ff5..24eeccc 100644
--- a/src/mlpack/core/util/prefixedoutstream_impl.hpp
+++ b/src/mlpack/core/util/prefixedoutstream_impl.hpp
@@ -4,6 +4,11 @@
  * @author Matthew Amidon
  *
  * Implementation of templated PrefixedOutStream member functions.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_UTIL_PREFIXEDOUTSTREAM_IMPL_HPP
 #define MLPACK_CORE_UTIL_PREFIXEDOUTSTREAM_IMPL_HPP
diff --git a/src/mlpack/core/util/sfinae_utility.hpp b/src/mlpack/core/util/sfinae_utility.hpp
index d3035b8..0739696 100644
--- a/src/mlpack/core/util/sfinae_utility.hpp
+++ b/src/mlpack/core/util/sfinae_utility.hpp
@@ -6,6 +6,11 @@
  * determine if classes passed in as template parameters contain members at
  * compile time, which is useful for changing functionality depending on what
  * operations an object is capable of performing.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_SFINAE_UTILITY
 #define MLPACK_CORE_SFINAE_UTILITY
diff --git a/src/mlpack/core/util/singletons.cpp b/src/mlpack/core/util/singletons.cpp
index e1401f9..d3ba713 100644
--- a/src/mlpack/core/util/singletons.cpp
+++ b/src/mlpack/core/util/singletons.cpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Declaration of singletons in libmlpack.so.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "singletons.hpp"
 #include "log.hpp"
diff --git a/src/mlpack/core/util/singletons.hpp b/src/mlpack/core/util/singletons.hpp
index ec43cc8..f48688a 100644
--- a/src/mlpack/core/util/singletons.hpp
+++ b/src/mlpack/core/util/singletons.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * Definitions of singletons used by libmlpack.so.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_UTIL_SINGLETONS_HPP
 #define MLPACK_CORE_UTIL_SINGLETONS_HPP
diff --git a/src/mlpack/core/util/timers.cpp b/src/mlpack/core/util/timers.cpp
index 4e6cd98..974b3eb 100644
--- a/src/mlpack/core/util/timers.cpp
+++ b/src/mlpack/core/util/timers.cpp
@@ -4,6 +4,11 @@
  * @author Marcus Edel
  *
  * Implementation of timers.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "timers.hpp"
 #include "cli.hpp"
diff --git a/src/mlpack/core/util/timers.hpp b/src/mlpack/core/util/timers.hpp
index 625f78e..71f5c19 100644
--- a/src/mlpack/core/util/timers.hpp
+++ b/src/mlpack/core/util/timers.hpp
@@ -4,6 +4,11 @@
  * @author Marcus Edel
  *
  * Timers for MLPACK.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_UTILITIES_TIMERS_HPP
 #define MLPACK_CORE_UTILITIES_TIMERS_HPP
diff --git a/src/mlpack/core/util/version.cpp b/src/mlpack/core/util/version.cpp
index 32630ce..44475f9 100644
--- a/src/mlpack/core/util/version.cpp
+++ b/src/mlpack/core/util/version.cpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * The implementation of GetVersion().
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #include "version.hpp"
 
diff --git a/src/mlpack/core/util/version.hpp b/src/mlpack/core/util/version.hpp
index ff5a404..a4343ab 100644
--- a/src/mlpack/core/util/version.hpp
+++ b/src/mlpack/core/util/version.hpp
@@ -3,6 +3,11 @@
  * @author Ryan Curtin
  *
  * The current version of mlpack, available as macros and as a string.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
  */
 #ifndef MLPACK_CORE_UTIL_VERSION_HPP
 #define MLPACK_CORE_UTIL_VERSION_HPP
diff --git a/src/mlpack/tests/ub_tree_test.cpp b/src/mlpack/tests/ub_tree_test.cpp
index 70c202b..c6ea00f 100644
--- a/src/mlpack/tests/ub_tree_test.cpp
+++ b/src/mlpack/tests/ub_tree_test.cpp
@@ -1,3 +1,14 @@
+/**
+ * @file ub_tree_test.cpp
+ * @author Mikhail Lozhnikov
+ *
+ * Tests for the UB tree.
+ *
+ * mlpack is free software; you may redistribute it and/or modify it under the
+ * terms of the 3-clause BSD license.  You should have received a copy of the
+ * 3-clause BSD license along with mlpack.  If not, see
+ * http://www.opensource.org/licenses/BSD-3-Clause for more information.
+ */
 #include <mlpack/core.hpp>
 #include <mlpack/core/tree/bounds.hpp>
 #include <mlpack/methods/neighbor_search/neighbor_search.hpp>
@@ -347,9 +358,4 @@ BOOST_AUTO_TEST_CASE(DualTreeTraverserTest)
   }
 }
 
- *
- * mlpack is free software; you may redistribute it and/or modify it under the
- * terms of the 3-clause BSD license.  You should have received a copy of the
- * 3-clause BSD license along with mlpack.  If not, see
- * http://www.opensource.org/licenses/BSD-3-Clause for more information.
 BOOST_AUTO_TEST_SUITE_END();

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



More information about the debian-science-commits mailing list