Home Nach oben Link Job Maschine Maschine_seq Maschinengroup Process Simulation Statistic_List Werkhalle File Read Report
| |
package jobshop;
import EventSim.*;
import SingleLink.*;
/**
* Title:Statistic_List
* Description: Klasse zur Ermittlung des Stapelmittelwertes und dessen Vertrauensbereiche
* Copyright:Dirk Schmitt & Guido Moser Copyright (c) 2001
* Company:no
* @author: Dirk Schmitt & Guido moser
* @version 1.0
*/
public class Statistic_List
{
// Stapelgroesse und Stapelanzahl
static int b=5;
int a;
static double t;
//acc Durchlaufzeit
double accW;
double acc;
double qacc;
//Zähler der Jobs des gleichen Typs
int counter;
//Identifier des Jobs
int id;
//constructor
public Statistic_List (int jobident)
{
this.id=jobident;
}
public int get_id()
{
return (this.id);
}
public void setstatistic(double akku)
{
acc+=akku;
if (counter++%b==0)
{
acc/=b;
accW+=acc;
qacc+=acc*acc;
acc=0;
a+=1; //Erhöhe stapelindex
}
}
//Ausgabe
public double get_mean()
{
return (accW/a);
}
public double get_acc()
{
return(accW*b);
}
public double get_sigma()
{
double acc=accW/a;
return (t*Math.sqrt(((qacc-a*acc*acc)/(a-1))/a));
}
} |