public class Cramer extends AbstractOptionHandler implements StatisticalTest
Modifier and Type | Class and Description |
---|---|
class |
Cramer.CramerTest |
Modifier and Type | Field and Description |
---|---|
static int |
BAHR |
FloatOption |
confidenceLevelOption |
static int |
CRAMER |
static int |
FRACA |
static int |
FRACB |
MultiChoiceOption |
kernelOption |
IntOption |
kOption |
static int |
LOG |
FloatOption |
maxMOption |
IntOption |
replicatesOption |
config
Constructor and Description |
---|
Cramer() |
Modifier and Type | Method and Description |
---|---|
Double |
call() |
Cramer.CramerTest |
cramerTest(List<Instance> x,
List<Instance> y) |
Cramer.CramerTest |
cramerTest(List<Instance> x,
List<Instance> y,
double confLevel,
int replicates,
String sim,
boolean justStatistic,
int kernel,
double maxM,
int k) |
Cramer.CramerTest |
cramerTest1(List<List<Double>> x,
List<List<Double>> y) |
Cramer.CramerTest |
cramerTest1(List<List<Double>> x,
List<List<Double>> y,
double confLevel,
int replicates,
String sim,
boolean justStatistic,
int kernel,
double maxM,
int k) |
static List<Instance> |
fileToInstances(String path) |
static List<List<Double>> |
fileToMatrix(String path) |
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
static void |
main(String[] args) |
protected void |
prepareForUseImpl(TaskMonitor monitor,
ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.
|
void |
set(List<Instance> x,
List<Instance> y)
This method sets the instances for later use in concurrent scenarios.
|
double |
test(List<Instance> x,
List<Instance> y)
This method performs a test and returns the correspoding p-value.
|
copy, getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
measureByteSize
public FloatOption confidenceLevelOption
public IntOption replicatesOption
public MultiChoiceOption kernelOption
public FloatOption maxMOption
public IntOption kOption
public static final int CRAMER
public static final int BAHR
public static final int LOG
public static final int FRACA
public static final int FRACB
public Cramer.CramerTest cramerTest(List<Instance> x, List<Instance> y)
public Cramer.CramerTest cramerTest1(List<List<Double>> x, List<List<Double>> y, double confLevel, int replicates, String sim, boolean justStatistic, int kernel, double maxM, int k)
public Cramer.CramerTest cramerTest(List<Instance> x, List<Instance> y, double confLevel, int replicates, String sim, boolean justStatistic, int kernel, double maxM, int k)
public void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.getDescription
in interface MOAObject
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentpublic double test(List<Instance> x, List<Instance> y)
StatisticalTest
test
in interface StatisticalTest
x
- List of instancesy
- List of instancesprotected void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
AbstractOptionHandler
prepareForUseImpl
and not prepareForUse
since
prepareForUse
calls prepareForUseImpl
.prepareForUseImpl
in class AbstractOptionHandler
monitor
- the TaskMonitor to userepository
- the ObjectRepository to usepublic void set(List<Instance> x, List<Instance> y)
StatisticalTest
set
in interface StatisticalTest
x
- List of instancesy
- List of instancesCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.