public class SubsetScheme extends Executable
Constructor and Description |
---|
SubsetScheme(java.lang.String[] args) |
Modifier and Type | Method and Description |
---|---|
void |
execute(OutputManager om)
abstract method execution for commands
|
static double[][] |
getRandomSubset(double[][] points,
int size,
java.util.Random ran)
Gets a randomly chosen subset of points.
|
static double[] |
getRandomSubsetEnergy(double[][] points,
int size,
int samples,
java.util.Random ran)
Gets a sample of random subsets, and returns their energy.
|
void |
initDefaultVals()
initialise the default values of class-level
fields, as they would be at declaration.
|
void |
initOptions(java.lang.String[] args)
default commandline parsing and initialisation
|
void |
initVariables()
abstract initialisation method for commands
|
static double |
pointsetEnergy(double[][] points)
Calculates the total energy of a point set.
|
public void initDefaultVals()
Executable
initDefaultVals
in class Executable
public void initOptions(java.lang.String[] args)
Executable
initOptions
in class Executable
public void initVariables()
Executable
initVariables
in class Executable
public void execute(OutputManager om)
Executable
execute
in class Executable
public static double[][] getRandomSubset(double[][] points, int size, java.util.Random ran)
public static double[] getRandomSubsetEnergy(double[][] points, int size, int samples, java.util.Random ran)
public static double pointsetEnergy(double[][] points)