Package Methods
Class KnniOpt
- java.lang.Object
-
- Methods.KnniOpt
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
value(int[] k)
Returns a value given a set of parameters
-
-
-
Constructor Detail
-
KnniOpt
public KnniOpt(byte[][] orig, Mask mask, double[][] weight)
Constructor- Parameters:
orig
- The original matrixmask
- The maskweight
- Distance (between samples) matrix
-
KnniOpt
public KnniOpt(byte[][] orig, Mask mask, double[][] weight, boolean verbose)
Constructor- Parameters:
orig
- The original matrixmask
- The maskweight
- Distance (between samples) matrixverbose
- Verbose output to standard out?
-
-
Method Detail
-
value
public double value(int[] k) throws NotEnoughGenotypesException, WrongNumberOfSNPsException
Description copied from interface:Value
Returns a value given a set of parameters- Specified by:
value
in interfaceValue
- Parameters:
k
- The parameters- Returns:
- A value associated with the parameters
- Throws:
NotEnoughGenotypesException
WrongNumberOfSNPsException
-
-