Package Methods
Class Mode
- java.lang.Object
-
- Methods.Mode
-
public class Mode extends java.lang.Object
Class to perform Mode imputation
-
-
Constructor Summary
Constructors Constructor Description Mode()
Created a class to perform Mode imputation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[][]
compute(byte[][] original)
Impute missing datadouble
fastAccuracy(byte[][] original, Mask mask)
Performs a fast accuracy calculation - only imputes those genotypes that were masked rather than all missing genotypes.
-
-
-
Method Detail
-
compute
public byte[][] compute(byte[][] original)
Impute missing data- Parameters:
original
- The original data set. Missing data is coded as -1- Returns:
- The imputed data set.
-
fastAccuracy
public double fastAccuracy(byte[][] original, Mask mask)
Performs a fast accuracy calculation - only imputes those genotypes that were masked rather than all missing genotypes.- Parameters:
original
- The original genotype valuesmask
- A mask- Returns:
- The percentage of genotypes imputed correctly
-
-