⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dynamicdataanalyzerimpl.java

📁 一个用于排队系统仿真的开源软件,有非常形象的图象仿真过程!
💻 JAVA
字号:
/**    
  * Copyright (C) 2006, Laboratorio di Valutazione delle Prestazioni - Politecnico di Milano

  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.

  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.

  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
  
package jmt.engine.dataAnalysis;

import Jama.Matrix;
import jmt.engine.math.*;

/**
 * This class performs dynamic data analysis: it can remove the initial
 *  transient period and performs calculation of variance and confidence
 *	interval of the sample mean of a sequence. <br>It is robust to data correlation.
 *  <br><br>
 *	See:<br>
 * (1) K. Pawlikowski, "Steady璖tate Simulation of Queueing Processes: A Survey
 *	of Problems and Solutions", ACM Computing Surveys 22, 2 (1990), pp. 122--170
 *
 *
 * @version Modified 7/02/2003
 * @author  Federico Granata
 * @author Bertoli Marco - Bugfixing statistical part (R5 and Schruben) 18-11-2005
 */

public class DynamicDataAnalyzerImpl implements DynamicDataAnalyzer {

    private static final boolean DEBUG = false;
    private static final boolean ZERODEBUG = false;

    //NEW
    //@author Stefano Omini
    protected SimParameters parameters;
    //end NEW

	/**number of batches */
    protected int numBatch = 128;
    /**number of samples per batch */
    protected int batchLen = 8;

    /**mean of batches */
    protected double[] batchMean;
	/**mean of batches weighted */
    protected double[] weightBatchMean;

    /**the extimated mean */
    protected double extMean = 0;
	/**the extimated variance */
    protected double extVar = 0;
	/**the exitmated confidence intervals */
    protected double confInt = 0;

    /**the sum of samples of the last batch */
    protected double sumLastBatch;
	/** actual number of samples */
    protected int nSamples = 0;
	/**maximum number of data to be collected */
    protected int maxData;

    /**constant chosen to reduce bias of variance extimator */
    protected double C1;
	/**degrees of freeedom of the t-distribution */
    protected int C2;

    //TODO: serve oppure no?? Viene inizializzata ma poi non 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -