Package eas.startSetup.parameterDatatypes

Examples of eas.startSetup.parameterDatatypes.ArrayListDouble


        ArrayListVec2D av = new ArrayListVec2D();
        av.add(new Vector2D(29.12, 212.2));
        av.add(new Vector2D(1.12, 12.2));
        av.add(new Vector2D(9.12, .2));

        ArrayListDouble av2 = new ArrayListDouble();
        av2.add(1.1);
        av2.add(2.2);
        av2.add(3.3);

        arr.add(new SingleParameter("par1", Datatypes.VECTOR2D_ARR,
                av,
                "", "TEST"));
        arr.add(new SingleParameter("par2", Datatypes.DOUBLE_ARR,
View Full Code Here


                        || s.substring(0, 1).equals("t"));
            }
            par.setParValue(boolListe);
            pushToListener(boolListe, par);
        } else if (par.getParameterType().equals(Datatypes.DOUBLE_ARR)) {
            ArrayListDouble doubListe = new ArrayListDouble(
                    strArr.length);
            for (String s : strArr) {
                doubListe.add(Double.parseDouble(s));
            }
            par.setParValue(doubListe);
            pushToListener(doubListe, par);
        } else if (par.getParameterType().equals(Datatypes.DOUBLE)) {
            // Double.
View Full Code Here

                this.id().toUpperCase()));
       
        list.add(new SingleParameter(
                "mutationsWkeiten",
                Datatypes.DOUBLE_ARR,
                new ArrayListDouble(new Double[] {0.01}),
                "Die Wahrscheinlichkeiten für eine Mutation an einer Zahl im Genom auf den verschiedenen Ebenen.",
                this.id().toUpperCase()));
       
        list.add(new SingleParameter(
                "mutationsStdAbw",
                Datatypes.DOUBLE_ARR,
                new ArrayListDouble(new Double[] {1.0}),
                "Die Standardabweichungen bei einer Mutation an einer Zahl im Genom auf den verschiedenen Ebenen.",
                this.id().toUpperCase()));
       
        list.add(new SingleParameter(
                "mutationsMinFaktor",
                Datatypes.DOUBLE_ARR,
                new ArrayListDouble(new Double[] {1.0}),
                "Der Minfaktor bei einer Mutation an einer Zahl im Genom auf den verschiedenen Ebenen.",
                this.id().toUpperCase()));
       
        list.add(new SingleParameter(
                "mutationsMaxFaktor",
                Datatypes.DOUBLE_ARR,
                new ArrayListDouble(new Double[] {20.0}),
                "Der Maxfaktor bei einer Mutation an einer Zahl im Genom auf den verschiedenen Ebenen.",
                this.id().toUpperCase()));
       
        list.add(new SingleParameter(
                "mutationsSeqLenKonst",
                Datatypes.DOUBLE_ARR,
                new ArrayListDouble(new Double[] {30.0}),
                "Die Sequenzlängenkonstante bei einer Mutation an einer Zahl im Genom auf den verschiedenen Ebenen.",
                this.id().toUpperCase()));
       
//        list.add(new SingleParameter(
//                "rekombination",
View Full Code Here

     * @param matrix
     * @return
     */
    public static Matrix parseMatrix(final String matrix) {
        String[] rows = matrix.replace(" ", "").replace("\n", "").split(";");
        ArrayListDouble rowParsed;
        ArrayListDouble[] matrixList = new ArrayListDouble[rows.length];
        int maxColumns = 0;
        int z = 0;
        double[][] matrixArray;
       
        for (String row : rows) {
            rowParsed = ArrayListDouble.parseArrayListDouble(row);
            if (rowParsed.size() > maxColumns) {
                maxColumns = rowParsed.size();
            }
            matrixList[z] = rowParsed;
            z++;
        }

View Full Code Here

TOP

Related Classes of eas.startSetup.parameterDatatypes.ArrayListDouble

Copyright © 2018 www.massapicom. 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.