Added MeanOfVectorMeasurement and unit test.

Measurement wrapper that calculates the mean of the elements of a
Vector returned by the wrapped measurement.
Changed MeanOfVectorMeasurement to extend Measurement<Vector>.
Fix bug: the fj.data.List.snoc used incorrectly.

This bug is aparent when running xpso-guide-provider.xml or xpso-iteration-strategies.xml.
Merge pull request #196 from censlin/bugFixSnocMisuse

Remember to reassign computed list.
Added support for a validation set in NNSlidingWindowTrainingProblem.
Added MSEValidationError measurement for neural networks training.
Added a NN measurement: the number of non-zero weights over the total number of weights, reported as a percentage.
Non-zero weights are defined as weights closer to zero than some epsilon (threshold).
This measurement may be used to report the percentage of irrelevant weights in NN training.
Hotfix: fixed error where the patterns were partitioned from the entire dataset, and not the current window 'candidateSet'.
Removed uid that was not unique from MSEValidationError class
Merge pull request #198 from sighmin/pull

NN Additions
Quantum PSO positon to remain in bounds.

Updated the simulator/build.sbt to ignore tests during assembly.

Signed-off-by: Gary Pamparà <gpampara@gmail.com>
Gave each entity property a type.

Gave entities convenience getters/setter for the properties so getProperties is not needed anymore.
Fixed failing test.
Angle Modulation Refactor

- Moved AngleModulation to cilib.problem package
- Extracted the bit generating function from the AM problem class
- Any ContinuousFunction can be used as a modulating function
- Added a modulating function with variable amplitude
- Added a framework to perform function sampling
- Implemented the default angle modulation sampling method
- Implemented a MinMax sampler
- Added a MinMaxAngleModulation decorator
- Removed the functionality for multiple generating functions
- Updated xml examples
- Updated test cases
- Fixed a small bug in the StringBasedDomainRegistry copy constructor

Signed-off-by: Bennie Leonard <bennie.leonard@gmail.com>
Changed AMPSO to make use of Functional Java

Signed-off-by: Bennie Leonard <bennie.leonard@gmail.com>
Fix tests

Signed-off-by: Gary Pamparà <gpampara@gmail.com>
N-queens decorator with linear penalty function
Correct the function interface used.

Signed-off-by: Gary Pamparà <gpampara@gmail.com>
Moved globalGuideProvider out of ParticleBehavior.

This guide provider now has to be set in the velocity providers
(and a few other places) where it is being used.

Related methods were removed from Particle and AbstractParticle.
Moved localGuideProvider out of ParticleBehavior.

This guide provider now has to be set in the velocity providers
(and a few other places) where it is being used.

Related methods were removed from Particle and AbstractParticle.

Some code cleanup.
Update QuantumPositionProvider to have a guide provider.

Signed-off-by: Gary Pamparà <gpampara@gmail.com>
Moved the implementation of updateVelocity/Position to the algorithms.

updateVelocity and updatePostion now simply updates those properties
with given arguments. It's now up to the algorithms to calculate the
new positions/velocities and send this information to the particles.
updatePosition still automatically updates the previous solution.

In most cases, this means the iteration strategies have to directly
access the velocity/position providers. In the case of the clustering
algorithms, the change is a bit more drastic.

Two ClusterParticle unit tests have become obsolete. A minor
adaptation to one of the unit tests in StandardDataClusteringIteration
StrategyTest should cover for the loss of the two unit tests.