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 TableasTable()Returns the most common calculated statistics in tabular formTableasTableComplete()Returns all the calculated statistics in tabular formstatic Statscreate(NumericColumn<?> values)Constructs a Stats object from the given columndoublegeometricMean()Returns the geometric mean of the valuesdoublemax()Returns the largest valuedoublemean()Returns the mean of values in the datadoublemin()Returns the smallest valuelongn()Returns the number of values in the datadoublepopulationVariance()Returns the population variance of the valuesdoublequadraticMean()Returns the quadratic mean of the valuesdoublerange()Returns the range of values in the datadoublesecondMoment()Returns the second moment of the valuesdoublestandardDeviation()Returns the standard deviation of values in the datadoublesum()Returns the sum of the valuesdoublesumOfLogs()Returns the sum of the logs of the valuesdoublesumOfSquares()Returns the sum of squares of the valuesdoublevariance()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
-
-