(Coding) Program Statistika

 

Statistika Dengan Program Java




package PBOKelas;
public class Statistika 
{
    private double[] data;

    public Statistika(double[] data) {
        this.data = data;
    }
    
    public double getMin(){
        double min;
        min = data[0];
        for (int i = 1; i < data.length; i++) {
            **********
        }
        return min;
    }
    
    public double getMax(){
        double max;
        max = data[0];
        for (int i = 1; i < data.length; i++) {
            **********
} return max; } public double getAvg(){ double jumlahData = 0,sigma = 0, avg = 0; **********
return sigma / jumlahData; } public double getStdev(){ double varians =0, Stdev = 0; **********
return Math.sqrt(varians); } public double[] sortData(int inc) { double[] temp; temp = new double[data.length];//coppy isi data dalam temp double data1; **********
if(inc >= 0){ for (int i = 0; i < temp.length; i++){ **********
} } else{ for (int i = 0; i < temp.length; i++) { **********
} } return temp; } }
Jika Ingin Mendownload Source Code Yang Lebih lengkap Bisa Langsung KLik Link Di Bawah ini

Posting Komentar

Lebih baru Lebih lama