public interface Engine
Modifier and Type | Interface and Description |
---|---|
static class |
Engine.FILE_TYPE
Enumeration, which represented type of column
separation in data file.
|
static class |
Engine.HIST_TYPES
Enumeration, which represented histogram types (normal, logarithm)
|
static class |
Engine.PLOT_TYPES
Enumeration, which represented types of plot
|
static class |
Engine.VAR_TYPES
Enumeration, which represented types of columns
|
Modifier and Type | Method and Description |
---|---|
boolean |
convertVariable(java.lang.String colName,
Engine.VAR_TYPES convert)
Convert type of column to different type of column
|
void |
createBarPlot(Engine.PLOT_TYPES type,
java.lang.String title,
java.lang.String xLabel,
java.lang.String yLabel,
java.lang.String... colNames)
Draw bar plot for specific columns with specific title and labels.
|
void |
createBoxPlot(java.lang.String title,
java.lang.String... colNames)
Draw box plot for specific columns with specific title.
|
boolean |
createHistogram(Engine.PLOT_TYPES type,
java.lang.String title,
java.lang.String xLabel,
java.lang.String yLabel,
java.lang.String colName)
Draw histogram for specific numeric column.
|
void |
createPiePlot(Engine.PLOT_TYPES type,
java.lang.String title,
java.lang.String colName)
Draw pie plot for specific column with specific title.
|
java.lang.String[] |
getCategories(java.lang.String colName)
Return name of categories after categorize.
|
Table |
getContingencyTable(java.lang.String colName1,
java.lang.String colName2)
Create and return contingency table for variable Z(X, Y)
|
java.lang.String[] |
getDefaultCategories(java.lang.String colName)
Return name of categories before categorized.
|
Table |
getFrequencyTable(java.lang.String col)
Create and return frequency table for categoric variable.
|
Table |
getCharacteristicTable(java.lang.String... cols)
Create and return table with description statistic values.
|
javax.swing.JPanel |
getPlotGraphPanel()
Return instance of JPanel with plot.
|
Table |
getQuantileTable(java.lang.String... cols)
Create and return quantile table for numeric variables.
|
Table |
getTable()
Create and return table from imported data
|
Table |
getTable(java.lang.String[] columnNames)
Create and return table with specific columns from imported data
|
void |
histogram(java.lang.String colName,
java.lang.Integer breaks,
Engine.HIST_TYPES type)
Create histogram for specific column, but not plot it.
|
void |
changeCategoriesNames(java.lang.String[] values,
java.lang.String colName)
Change names of categories for specific category column
|
ChisqTest |
chisqDependencyTest()
Compute and create report of Pearson's Chi-squared Test,
for testing independency
|
boolean |
loadTable(java.lang.String filePath,
Engine.FILE_TYPE fileType)
Import table of data
|
void |
savePlots(java.lang.String filePath,
int width,
int height)
Export plots to specific path with specific size
|
void |
setColors(java.lang.String[] colors)
Set specific colors to plots
|
void |
setNAValue(java.lang.String value,
java.lang.String colName)
Set missing values to specific column
|
void |
setPlotGraphPanel(javax.swing.JPanel plotGraphPanel)
Set instance of JPanel with plot.
|
javax.swing.JPanel getPlotGraphPanel()
void setPlotGraphPanel(javax.swing.JPanel plotGraphPanel)
plotGraphPanel
- JPanelvoid histogram(java.lang.String colName, java.lang.Integer breaks, Engine.HIST_TYPES type)
colName
- String - names of columnbreaks
- Integer - number of breakstype
- Engine.HIST_TYPES
- histogram typevoid createBoxPlot(java.lang.String title, java.lang.String... colNames)
title
- String - title of plotcolNames
- String - names of columnsvoid createBarPlot(Engine.PLOT_TYPES type, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, java.lang.String... colNames)
type
- Engine.PLOT_TYPES
- represent type of plottitle
- String - title of plotxLabel
- String - label of x axeyLabel
- String - label of y axecolNames
- String - names of columnsvoid createPiePlot(Engine.PLOT_TYPES type, java.lang.String title, java.lang.String colName)
type
- Engine.PLOT_TYPES
- represent type of plottitle
- String - title of plotcolName
- String - name of specific columnboolean createHistogram(Engine.PLOT_TYPES type, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, java.lang.String colName)
type
- Engine.PLOT_TYPES
- types of plotstitle
- String - title of plotxLabel
- String - label of x axeyLabel
- String - label of y axecolName
- String - names of columnjava.lang.String[] getCategories(java.lang.String colName)
colName
- - name of columnjava.lang.String[] getDefaultCategories(java.lang.String colName)
colName
- String - names of columnTable getTable()
Table
- data tableTable getTable(java.lang.String[] columnNames)
columnNames
- String[] - specific columnsTable
- data tableTable getContingencyTable(java.lang.String colName1, java.lang.String colName2)
colName1
- String - name of X variablecolName2
- String - name of Y variableTable
- contingency tableTable getFrequencyTable(java.lang.String col)
col
- String - name of specific columnTable
- frequency tableTable getQuantileTable(java.lang.String... cols)
cols
- String - name of specific columnsTable
- quantile tableTable getCharacteristicTable(java.lang.String... cols)
cols
- String - name of specific columnsTable
- characteristic tablevoid changeCategoriesNames(java.lang.String[] values, java.lang.String colName)
values
- String - names of categoriescolName
- String - name of columnboolean loadTable(java.lang.String filePath, Engine.FILE_TYPE fileType)
filePath
- String - location of imported filefileType
- Engine.FILE_TYPE
- type of filevoid savePlots(java.lang.String filePath, int width, int height)
filePath
- String - location of export filewidth
- int - width of exported plotheight
- int - height of exported plotvoid setColors(java.lang.String[] colors)
colors
- String[] - names of colorsvoid setNAValue(java.lang.String value, java.lang.String colName)
value
- String - category to set as missingcolName
- String - name of columnboolean convertVariable(java.lang.String colName, Engine.VAR_TYPES convert)
colName
- String - name of columnconvert
- Engine.VAR_TYPES
- type to convert