Examples of PopSnapshot


Examples of fmg.fmg8.statistik.PopSnapshot

     * @param pops  Die Populationen.
     *
     * @return  Die extrahierten Fitnesswerte.
     */
    public static String extrahiereFit(final List<PopSnapshot> pops) {
        PopSnapshot pop;
        long popNummer;
        String sGes = "";
        Iterator<PopSnapshot> it = pops.iterator();
       
        // Erste Zeile.
        sGes = sGes + "SnapshotID";
       
        for (int i = 0;
             i < ((PopSnapshot) pops.get(0)).getRobSchnapp().length;
             i++) {
            sGes = sGes + ";Fitness (Roboter " + i + ")";
        }
        sGes = sGes + "\n";
       
        // Rest.
        while (it.hasNext()) {
            String s = "";
           
            pop = it.next();
            popNummer = pop.getId();
           
            s = s + popNummer;
               
            for (int i = 0; i < pop.getRobSchnapp().length; i++) {
                s = s
                    + ";"
                    + pop.getRobSchnapp()[i].getFitness()[0];
            }
           
            sGes = sGes + s + "\n";
        }

View Full Code Here

Examples of fmg.fmg8.statistik.PopSnapshot

     * @return  Die Fitnesswerte der Roboter der Population als String.
     */
    public static String extrEinzelPopFitness(final Aufnahme a,
                                              final int      popNum) {
        String s = "";
        PopSnapshot p = (PopSnapshot) a.getPops().get(popNum);
        RobSnapshot[] robs = p.getRobSchnapp();
       
        for (int i = 0; i < robs.length; i++) {
            s = s + robs[i].getFitness();
            if (i < robs.length - 1) {
                s = s + "_";
View Full Code Here

Examples of fmg.fmg8.statistik.PopSnapshot

     * @param pops  Die Populationen.
     *
     * @return  Die extrahierten Fitnesswerte.
     */
    public static String extrahiereFit(final List<PopSnapshot> pops) {
        PopSnapshot pop;
        long popNummer;
        String sGes = "";
        Iterator<PopSnapshot> it = pops.iterator();
       
        // Erste Zeile.
        sGes = sGes + "SnapshotID";
       
        for (int i = 0;
             i < ((PopSnapshot) pops.get(0)).getRobSchnapp().length;
             i++) {
            sGes = sGes + ";Fitness (Roboter " + i + ")";
        }
        sGes = sGes + "\n";
       
        // Rest.
        while (it.hasNext()) {
            String s = "";
           
            pop = it.next();
            popNummer = pop.getId();
           
            s = s + popNummer;
               
            for (int i = 0; i < pop.getRobSchnapp().length; i++) {
                s = s
                    + ";"
                    + pop.getRobSchnapp()[i].getFitness()[0];
            }
           
            sGes = sGes + s + "\n";
        }

View Full Code Here

Examples of fmg.fmg8.statistik.PopSnapshot

     * @return  Die Fitnesswerte der Roboter der Population als String.
     */
    public static String extrEinzelPopFitness(final Aufnahme a,
                                              final int      popNum) {
        String s = "";
        PopSnapshot p = (PopSnapshot) a.getPops().get(popNum);
        RobSnapshot[] robs = p.getRobSchnapp();
       
        for (int i = 0; i < robs.length; i++) {
            s = s + robs[i].getFitness();
            if (i < robs.length - 1) {
                s = s + "_";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.