public class XTally extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static short |
BOTH_SIDE_CONFIDENCE
BOTH_SIDE_CONFIDENCE refers to both sides of the confidence.
|
protected String |
description
description refers to the description of this tally.
|
static short |
LEFT_SIDE_CONFIDENCE
LEFT_SIDE_CONFIDENCE refers to the left side confidence.
|
protected double |
max
maxrefers to the max of the tally.
|
protected double |
min
min refers to the min of the tally.
|
protected long |
n
n refers to the number of measurements.
|
static short |
RIGTH_SIDE_CONFIDENCE
RIGTH_SIDE_CONFIDENCE refers to the right side confidence.
|
protected Object |
semaphore
the semaphore.
|
protected double |
sum
sum refers to the sum of the tally.
|
protected double |
varianceSum
varianceSum refers to the varianceSum of the tally.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getConfidenceInterval(double alpha)
returns the confidence interval on either side of the mean.
|
double[] |
getConfidenceInterval(double alpha,
short side)
returns the confidence interval based of the mean.
|
String |
getDescription()
returns the description of this tally.
|
double |
getMax()
Returns the max.
|
double |
getMin()
Returns the min.
|
long |
getN()
Returns the number of observations.
|
double |
getSampleMean()
Returns the sampleMean of all oberservations since the initialization.
|
double |
getSampleVariance()
Returns the current tally variance.
|
double |
getStdDev()
Returns the current tally standard deviation.
|
double |
getSum()
returns the sum of the values of the observations.
|
void |
initialize()
initializes the Tally.
|
boolean |
isInitialized()
is this tally initialized?
|
void |
tally(double value)
tally.
|
String |
toString() |
int |
writeToExcel(org.apache.poi.ss.usermodel.Sheet sheet,
int startRow)
Write statistics to an excel spreadsheet, starting on row "startRow".
|
protected double sum
protected double min
protected double max
protected double varianceSum
protected long n
protected String description
protected Object semaphore
public static final short LEFT_SIDE_CONFIDENCE
public static final short BOTH_SIDE_CONFIDENCE
public static final short RIGTH_SIDE_CONFIDENCE
public XTally(String description)
description
- String; description of the statisticpublic double getSampleMean()
public double[] getConfidenceInterval(double alpha)
alpha
- double; Alpha is the significance level used to compute the confidence level. The confidence level equals
100*(1 - alpha)%, or in other words, an alpha of 0.05 indicates a 95 percent confidence level.public double[] getConfidenceInterval(double alpha, short side)
alpha
- double; Alpha is the significance level used to compute the confidence level. The confidence level equals
100*(1 - alpha)%, or in other words, an alpha of 0.05 indicates a 95 percent confidence level.side
- short; the side of the confidence interval with respect to the meanpublic String getDescription()
public double getMax()
public double getMin()
public long getN()
public double getStdDev()
public double getSum()
public double getSampleVariance()
public void initialize()
public boolean isInitialized()
public void tally(double value)
value
- double; the valuepublic int writeToExcel(org.apache.poi.ss.usermodel.Sheet sheet, int startRow)
sheet
- Sheet; the excel sheet to write tostartRow
- int; the first row of writingpublic String toString()
toString
in class Object
Object.toString()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.