Package tech.tablesaw.columns.numbers
Class Stats
- java.lang.Object
-
- tech.tablesaw.columns.numbers.Stats
-
public class Stats extends Object
An object that calculates in one pass a variety of common statistical values that describe a column
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Table
asTable()
Returns the most common calculated statistics in tabular formTable
asTableComplete()
Returns all the calculated statistics in tabular formstatic Stats
create(NumericColumn<?> values)
Constructs a Stats object from the given columndouble
geometricMean()
Returns the geometric mean of the valuesdouble
max()
Returns the largest valuedouble
mean()
Returns the mean of values in the datadouble
min()
Returns the smallest valuelong
n()
Returns the number of values in the datadouble
populationVariance()
Returns the population variance of the valuesdouble
quadraticMean()
Returns the quadratic mean of the valuesdouble
range()
Returns the range of values in the datadouble
secondMoment()
Returns the second moment of the valuesdouble
standardDeviation()
Returns the standard deviation of values in the datadouble
sum()
Returns the sum of the valuesdouble
sumOfLogs()
Returns the sum of the logs of the valuesdouble
sumOfSquares()
Returns the sum of squares of the valuesdouble
variance()
Returns the sample variance of the values
-
-
-
Method Detail
-
create
public static Stats create(NumericColumn<?> values)
Constructs a Stats object from the given column
-
range
public double range()
Returns the range of values in the data
-
standardDeviation
public double standardDeviation()
Returns the standard deviation of values in the data
-
n
public long n()
Returns the number of values in the data
-
mean
public double mean()
Returns the mean of values in the data
-
min
public double min()
Returns the smallest value
-
max
public double max()
Returns the largest value
-
sum
public double sum()
Returns the sum of the values
-
variance
public double variance()
Returns the sample variance of the values
-
sumOfSquares
public double sumOfSquares()
Returns the sum of squares of the values
-
populationVariance
public double populationVariance()
Returns the population variance of the values
-
sumOfLogs
public double sumOfLogs()
Returns the sum of the logs of the values
-
geometricMean
public double geometricMean()
Returns the geometric mean of the values
-
quadraticMean
public double quadraticMean()
Returns the quadratic mean of the values
-
secondMoment
public double secondMoment()
Returns the second moment of the values
-
asTable
public Table asTable()
Returns the most common calculated statistics in tabular form
-
asTableComplete
public Table asTableComplete()
Returns all the calculated statistics in tabular form
-
-