Package com.numb3r3.common.math

Examples of com.numb3r3.common.math.Matrix.divi()


    }

    @Override
    public Matrix rmean() {
        Matrix matrix = this.rsum();
        matrix.divi(this.getColumnsNum());
        return matrix;
    }

    @Override
    public double rmean(int row) {
View Full Code Here


    }

    @Override
    public Matrix cmean() {
        Matrix matrix = this.csum();
        matrix.divi(this.getRowsNum());
        return matrix;
    }

    @Override
    public Matrix cstd() {
View Full Code Here

                double old = std.get(0, j);
                std.put(0, j, old + (value - mean.get(0, j))
                        * (value - mean.get(0, j)));
            }
        }
        std.divi(this.getRowsNum());
        for (int j = 0; j < this.getColumnsNum(); j++) {
            double value = Math.sqrt(std.get(0, j));
            std.put(0, j, value);
        }
        return std;
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.