smile.imputation
Class AverageImputation
- java.lang.Object
-
- smile.imputation.AverageImputation
-
- All Implemented Interfaces:
- MissingValueImputation
public class AverageImputation extends java.lang.Object implements MissingValueImputation
Impute missing values with the average of other attributes in the instance. Assume the attributes of the dataset are of same kind, e.g. microarray gene expression data, the missing values can be estimated as the average of non-missing attributes in the same instance. Note that this is not the average of same attribute across different instances.
-
-
Constructor Summary
Constructors Constructor and Description AverageImputation()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidimpute(double[][] data)Impute missing values in the dataset.
-
-
-
Method Detail
-
impute
public void impute(double[][] data) throws MissingValueImputationExceptionDescription copied from interface:MissingValueImputationImpute missing values in the dataset.- Specified by:
imputein interfaceMissingValueImputation- Parameters:
data- a data set with missing values (represented as Double.NaN). On output, missing values are filled with estimated values.- Throws:
MissingValueImputationException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG