-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStatisticsTools.java
17 lines (16 loc) · 981 Bytes
/
StatisticsTools.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package statisticstools;
import java.util.*;
interface StatisticsTools {
public double[] generateRandom1DArray(int numberOfRows, double range1, double range2);
public double[][] generateRandom2DArray(int numberOfRows, int numberOfColumns, double range1, double range2);
public double average1DArray(double[] x);
public double average2DArray(double[][] x, int columnOrder);
public double standardDiv1DArray(double[] x);
public double standardDiv2DArray(double[][] x, int columnOrder);
public double[] confidenceInterval1DArray(double[] x, double zScore);
public double[] confidenceInterval2DArray(double[][] x, double zScore, int columnOrder);
public void print1DArray(double[] array);
public void print2DArray(double[][] array);
public void drawHistogram(String title, double[] values, double x_start, double x_end, double x_interval, int y_start, int y_end, int y_interval);
public double combinationCal(ArrayList<Double> array);
}