Examples of SampleStatistics


Examples of jmt.engine.math.SampleStatistics

      refreshData();
    }
  }

  private void updateStatistics(boolean complete){
    SampleStatistics stat = sop.getStatistics();
    if (stat == null) {
      // statistics are not ready yet.
      return;
    }
    fieldMean.setText(decimalFormat.format(stat.getMean()));
    fieldStanDev.setText(decimalFormat.format(stat.getStandardDeviation()));
    fieldMoment4.setText(decimalFormat.format(stat.getMoment4()));
    fieldMoment3.setText(decimalFormat.format(stat.getMoment3()));
    fieldMoment2.setText(decimalFormat.format(stat.getMoment2()));
    fieldMoment1.setText(decimalFormat.format(stat.getMean()));
    fieldSkew.setText(decimalFormat.format(stat.getSkew()));
    fieldCoefVar.setText(decimalFormat.format(stat.getCoefficienfOfVariation()));
    fieldVar.setText(decimalFormat.format(stat.getVariance()));
    fieldKur.setText(decimalFormat.format(stat.getKurtosis()));
    fieldMin.setText(decimalFormat.format(stat.getMin()));
    fieldMax.setText(decimalFormat.format(stat.getMax()));
    // Set meaningful initial values for option fields.
    if (complete) {
      if (isEmpty(minValue.getText())) {
        minValue.setText(decimalFormat.format(stat.getMin()));
      }
      if (isEmpty(maxValue.getText())) {
        maxValue.setText(decimalFormat.format(stat.getMax()));
      }
      if (isEmpty(firstSample.getText())) {
        firstSample.setText(String.valueOf(measureDefinition.getDiscardedSamples(measureIndex)+1));
      }
      if (isEmpty(lastSample.getText())) {
View Full Code Here

Examples of jmt.engine.math.SampleStatistics

 
  //reads file and generates graph. Code linked with code of CSVOutputReader.
  private void loadCSV() throws IOException, ParseException {
    File measureFile = new File(filename);
    VerboseCSVMeasureOutputReader reader = new VerboseCSVMeasureOutputReader(measureFile, measureDefinition.getLogDecimalSeparator(),measureDefinition.getLogCsvDelimiter());
    statistics = new SampleStatistics();
   
    // Skips header.
    updateProgress(0.0);
    reader.openFile(start > 1 ? start : 1);
    try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.