| Constructor and Description |
|---|
DoubleDataSet(double... data)
Construct a new data set from the given data.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
asArray()
The observations.
|
double |
correlation(DataSet otherData)
The unbiased sample correlation of these observations with the observations
contained in the given data set.
|
double |
covariance(DataSet otherData)
The unbiased sample covariance of these observations with the observations
contained in the given data set.
|
boolean |
equals(Object obj) |
int |
hashCode() |
double |
mean()
The mean of the observations.
|
double |
median()
The median value of the observations.
|
DataSet |
plus(DataSet otherData)
Add every element of this data set to the corresponding element of the given data set.
|
int |
size()
The size of the data set.
|
double |
stdDeviation()
The unbiased sample standard deviation of the observations.
|
double |
sum()
The sum of the observations.
|
double |
sumOfSquares()
The sum of the squared observations.
|
DataSet |
times(DataSet otherData)
Multiply every element of this data set with the corresponding element of the given data set.
|
String |
toString() |
double |
variance()
The unbiased sample variance of the observations.
|
public DoubleDataSet(@NonNull
double... data)
data - the collection of observations.public final double sum()
DataSetpublic final double sumOfSquares()
DataSetsumOfSquares in interface DataSetpublic final double mean()
DataSetpublic final double median()
DataSetpublic final int size()
DataSetpublic final DataSet times(@NonNull DataSet otherData)
DataSetpublic final DataSet plus(@NonNull DataSet otherData)
DataSetpublic final double variance()
DataSetpublic final double stdDeviation()
DataSetstdDeviation in interface DataSetpublic final double covariance(@NonNull
DataSet otherData)
DataSetcovariance in interface DataSetotherData - the data to compute the covariance with.public final double correlation(@NonNull
DataSet otherData)
DataSetcorrelation in interface DataSetotherData - the data to compute the correlation coefficient with.public final double[] asArray()
DataSet