Package flanagan.analysis

Examples of flanagan.analysis.Stat


            for(int i=0; i<this.numberOfColumns; i++){
                double[] hold = new double[this.numberOfRows];
                for(int j=0; j<this.numberOfRows; j++){
                    hold[i] = this.matrix[j][i];
                }
                Stat st = new Stat(hold);
                standardDeviations[i] = st.standardDeviation();
            }

            return standardDeviations;
        }
View Full Code Here



        // STANDARD ERROR OF THE ELEMENTS
        // Returns standard error of all elements
        public double stanadardError(){
            Stat st = new Stat(this.matrix[0]);

            for(int i=1; i<this.numberOfRows; i++){
                st.concatenate(this.matrix[i]);
            }

            return st.standardError();
        }
View Full Code Here

        // Returns standard errors of the rows
        public double[] rowStandardErrors(){
            double[] standardErrors = new double[this.numberOfRows];
            for(int i=0; i<this.numberOfRows; i++){
                Stat st = new Stat(this.matrix[i]);
                standardErrors[i] = st.standardError();
            }

            return standardErrors;
        }
View Full Code Here

            for(int i=0; i<this.numberOfColumns; i++){
                double[] hold = new double[this.numberOfRows];
                for(int j=0; j<this.numberOfRows; j++){
                    hold[i] = this.matrix[j][i];
                }
                Stat st = new Stat(hold);
                standardErrors[i] = st.standardError();
            }

            return standardErrors;
        }
View Full Code Here

      // Returns maxima of the rows
        public double[] rowMaxima(){
            double[] maxima = new double[this.numberOfRows];
            for(int i=0; i<this.numberOfRows; i++){
                Stat st = new Stat(this.matrix[i]);
                maxima[i] = st.maximum();
            }

            return maxima;
        }
View Full Code Here

            for(int i=0; i<this.numberOfColumns; i++){
                double[] hold = new double[this.numberOfRows];
                for(int j=0; j<this.numberOfRows; j++){
                    hold[i] = this.matrix[j][i];
                }
                Stat st = new Stat(hold);
                maxima[i] = st.maximum();
            }

            return maxima;
        }
View Full Code Here

      // Returns minima of the rows
        public double[] rowMinima(){
            double[] minima = new double[this.numberOfRows];
            for(int i=0; i<this.numberOfRows; i++){
                Stat st = new Stat(this.matrix[i]);
                minima[i] = st.minimum();
            }

            return minima;
        }
View Full Code Here

            for(int i=0; i<this.numberOfColumns; i++){
                double[] hold = new double[this.numberOfRows];
                for(int j=0; j<this.numberOfRows; j++){
                    hold[i] = this.matrix[j][i];
                }
                Stat st = new Stat(hold);
                minima[i] = st.minimum();
            }

            return minima;
        }
View Full Code Here

      // Returns ranges of the rows
        public double[] rowRanges(){
            double[] ranges = new double[this.numberOfRows];
            for(int i=0; i<this.numberOfRows; i++){
                Stat st = new Stat(this.matrix[i]);
                ranges[i] = st.maximum() - st.minimum();
            }

            return ranges;
        }
View Full Code Here

    }

    // Copy to a new instance of Stat
    public Stat statCopy(){

        Stat am = new Stat();
        am.length = this.length;
        am.maxIndex = this.maxIndex;
        am.minIndex = this.minIndex;
        am.sumDone = this.sumDone;
        am.productDone = this.productDone;
View Full Code Here

TOP

Related Classes of flanagan.analysis.Stat

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.