Package Methods

Class 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 data
      double fastAccuracy​(byte[][] original, Mask mask)
      Performs a fast accuracy calculation - only imputes those genotypes that were masked rather than all missing genotypes.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Mode

        public Mode()
        Created a class to perform Mode imputation
    • 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 values
        mask - A mask
        Returns:
        The percentage of genotypes imputed correctly