Package Methods

Class KnniLDOpt

  • All Implemented Interfaces:
    Value

    public class KnniLDOpt
    extends java.lang.Object
    implements Value
    Wrapper around KnniLD to allow optimization of parameters
    • Constructor Summary

      Constructors 
      Constructor Description
      KnniLDOpt​(byte[][] orig, Mask mask, Similar sim)
      Constructor
      KnniLDOpt​(byte[][] orig, Mask mask, Similar sim, boolean verbose)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double value​(int[] p)
      Returns a value given a set of parameters
      • Methods inherited from class java.lang.Object

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

      • KnniLDOpt

        public KnniLDOpt​(byte[][] orig,
                         Mask mask,
                         Similar sim)
        Constructor
        Parameters:
        orig - The original matrix
        mask - The mask
        sim - Object for accessing similarity between SNPs
      • KnniLDOpt

        public KnniLDOpt​(byte[][] orig,
                         Mask mask,
                         Similar sim,
                         boolean verbose)
        Constructor
        Parameters:
        orig - The original matrix
        mask - The mask
        sim - Object for accessing similarity between SNPs
        verbose - Verbose output to standard out?
    • Method Detail

      • value

        public double value​(int[] p)
        Description copied from interface: Value
        Returns a value given a set of parameters
        Specified by:
        value in interface Value
        Parameters:
        p - The parameters
        Returns:
        A value associated with the parameters