Package eas.math.matrix

Examples of eas.math.matrix.Matrix


        return this.getActivationFunction(id).activationPhi(this.getNeuronValue(id));
    }
   
    public NeuralNetworkDoubleBase(final ParCollection params, int neuronsCount) {
        this.pars = params;
        this.neuronVector = new Matrix(1, neuronsCount);
        this.weightMatrix = new Matrix(neuronsCount, neuronsCount);
        this.activationFunctions = new HashMap<>();
        this.inverseWeightMatrix = null;
        this.standardActFct = new ActivationFunctionSigmoid(1.0);
    }
View Full Code Here


        int numBadAgents = (int) params.getParValueVector2D("NumberOfAgents").y;
        int n = numGoodAgents + numBadAgents;
        int k = params.getParValueInt("SelectionNumberK");
        double exponent = params.getParValueDouble("ExponentWkeitsMatrix");
        boolean sonderMatrix = params.getParValueBoolean("SonderMatrix?");
        Matrix wkeitsMatrix;
       
        if (sonderMatrix) {
            wkeitsMatrix = Matrix.erzeugeWkeitsMatrixSonder(k, n);
        } else if (exponent >= 0) {
            wkeitsMatrix = Matrix.erzeugeWkeitsMatrixPolynomialGut(
View Full Code Here

            // Turnier zusammenstellen.
//            System.out.println();
//            System.out.println(goods.size());
//            System.out.println(bads.size());
            Matrix richtigeZeile = wkeitsVerteilungSel.erzeugeZeilenMatrix(new int[] {goods.size()});
//            System.out.println(richtigeZeile);
            LinkedList<Double> verteilung1 = new LinkedList<Double>();
            LinkedList<Integer2D> tupel = new LinkedList<Integer2D>();
            Integer2D ausgewaehlt;
           
            for (int i = 0; i < richtigeZeile.getColumnCount(); i++) {
                verteilung1.add(richtigeZeile.get(i, 0));
                tupel.add(richtigeZeile.getColumnTitle(i));
            }

            ausgewaehlt = (Integer2D) MiscMath.randVerteilungDoubleAngenaehert(
                    tupel,
                    verteilung1,
View Full Code Here

        int anzahlGdPop = this.numberGoodsInPopBeforeLastSelection;
        int anzahlGdTurnier = this.numberGoodsInLastTournament;
      
        int k = this.tournamentGroesse;
        if (speicherMatrix == null) {
            speicherMatrix = new Matrix(k + 1, n + 1);
            for (int i = 0; i < speicherMatrix.getColumnCount(); i++) {
                speicherMatrix.setColumnTitle(i, new Integer2D(i, k - i));
            }
            for (int j = 0; j < speicherMatrix.getRowCount(); j++) {
                speicherMatrix.setRowTitle(j, new Integer2D(j, n - j));
View Full Code Here

    }
   
    public static void main(String[] args) {
        File path = new File("C:/Eig/Forschung/Paper_Vortraege/Paper_13_ECTA11/Experimente/NoMutation/simWithoutMutationRegularSelection");
        File[] files = path.listFiles(new FileNamePrefixFilter("SelektionsMatrix"));
        Matrix gesamtMatrix = null;
        Matrix zwischenMatrix = null;
        String storeName = "C:/Eig/Forschung/Paper_Vortraege/Paper_13_ECTA11/Experimente/NoMutation/simWithoutMutationRegularSelection/gesamtMatrix.txt";
       
        System.out.println("Analyse von " + files.length + " Dateien gestartet.");
       
        for (int i = 0; i < files.length; i++) {
            System.out.println("Bearbeite Datei " + files[i]);
            if (i == 0) {
                gesamtMatrix = new Matrix(files[i]);
            } else {
                zwischenMatrix = new Matrix(files[i]);
                gesamtMatrix.add(zwischenMatrix);
            }
            if (i % 100 == 99) {
                System.out.println();
                System.out.println(gesamtMatrix);
View Full Code Here

        this.heightProfile = params.getParValueMatrix("heightProfile");
       
        if (!params.getParValueString("heightProfileFromFile").equals("null")) {
            try {
                this.heightProfile = new Matrix(new File(
                        params.getStdDirectory() + "/" + params.getParValueString("heightProfileFromFile")));
            } catch (Exception e) {
            }
        }
       
View Full Code Here

                this.getClass().getSimpleName().toUpperCase()));
       
        list.add(new SingleParameter(
                "heightProfile",
                Datatypes.MATRIX,
                new Matrix(new double[][] {{1.0, 1.1, 1.2}, {2.0, 2.1, 2.2}, {3.0, 3.1, 3.2}}),
                "",
                this.getClass().getSimpleName().toUpperCase()));
       
        list.add(new SingleParameter(
                "showAdditionalInfo",
View Full Code Here

TOP

Related Classes of eas.math.matrix.Matrix

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.