All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.cilib.pso.guideprovider.NBestGuideProvider Maven / Gradle / Ivy

Go to download

A library of composable components enabling simpler Computational Intelligence

The newest version!
/**           __  __
 *    _____ _/ /_/ /_    Computational Intelligence Library (CIlib)
 *   / ___/ / / / __ \   (c) CIRG @ UP
 *  / /__/ / / / /_/ /   http://cilib.net
 *  \___/_/_/_/_.___/
 */
package net.sourceforge.cilib.pso.guideprovider;

import net.sourceforge.cilib.pso.particle.Particle;
import net.sourceforge.cilib.type.types.container.StructuredType;

/**
 * 

* A concrete implementation of {@link GuideProvider} where the neighbourhood * best position of a particle gets selected as a guide (usually global guide). *

* */ public class NBestGuideProvider implements GuideProvider { private static final long serialVersionUID = 6770044000445220658L; public NBestGuideProvider() { } public NBestGuideProvider(NBestGuideProvider copy) { } @Override public NBestGuideProvider getClone() { return new NBestGuideProvider(this); } @Override public StructuredType get(Particle particle) { return particle.getNeighbourhoodBest().getBestPosition(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy