public class ChiSquare extends Object
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.Table<String,String,Double> |
chiSquareTable |
protected com.google.common.collect.Table<String,String,Integer> |
dataTable |
protected int |
df |
static double |
EMPIRICAL_P_VALUE |
protected int |
total |
double |
totalChiSquare |
double |
totalPVal |
| Constructor and Description |
|---|
ChiSquare() |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateChiSquare() |
protected static double |
getPValue(double chiSquare,
double df) |
void |
loadTrainingData(List<Tuple> trainingData) |
void |
printPTable() |
public static final double EMPIRICAL_P_VALUE
protected int df
protected int total
public double totalChiSquare
public double totalPVal
Copyright © 2017. All rights reserved.