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

net.sourceforge.cilib.tuning.parameterlist.FFDParameterListProvider Maven / Gradle / Ivy

/**           __  __
 *    _____ _/ /_/ /_    Computational Intelligence Library (CIlib)
 *   / ___/ / / / __ \   (c) CIRG @ UP
 *  / /__/ / / / /_/ /   http://cilib.net
 *  \___/_/_/_/_.___/
 */
package net.sourceforge.cilib.tuning.parameterlist;

import fj.P1;
import fj.data.List;
import net.sourceforge.cilib.math.Maths;
import net.sourceforge.cilib.tuning.parameters.ParameterGenerator;
import net.sourceforge.cilib.type.types.container.Vector;

public class FFDParameterListProvider extends ParameterListProvider {
    
    private List> parameters;
    
    public FFDParameterListProvider() {
        this.parameters = List.>nil();
    }

    @Override
    public List _1() {
        return Maths.combinations(parameters.map(P1.__1()));
    }
    
    public void addParameter(ParameterGenerator p) {
        this.parameters = parameters.cons(p);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy