use of org.knime.core.node.BufferedDataTable in project knime-core by knime.
the class PMMLRuleEditorNodeModel method execute.
/**
* {@inheritDoc}
*/
@Override
protected PortObject[] execute(final PortObject[] inData, final ExecutionContext exec) throws Exception {
final BufferedDataTable table = (BufferedDataTable) inData[0];
RearrangerAndPMMLModel m = createRearrangerAndPMMLModel(table.getDataTableSpec());
return new PortObject[] { exec.createColumnRearrangeTable(table, m.getRearranger(), exec), m.getPMMLPortObject() };
}
use of org.knime.core.node.BufferedDataTable in project knime-core by knime.
the class PairedTTestStatistics method getTTestTable.
/**
* Get the test result of the t-test.
* @param exec the execution context
* @return the t-test results
*/
public BufferedDataTable getTTestTable(final ExecutionContext exec) {
DataTableSpec outSpec = getTableSpec();
BufferedDataContainer cont = exec.createDataContainer(outSpec);
int r = 0;
for (List<DataCell> cells : getTTestCells()) {
cont.addRowToTable(new DefaultRow(RowKey.createRowKey(r), cells));
r++;
}
cont.close();
BufferedDataTable outTable = cont.getTable();
return outTable;
}
use of org.knime.core.node.BufferedDataTable in project knime-core by knime.
the class PairedTTestStatistics method getDescStatsTable.
/**
* Get descriptive statistics
* @param exec the execution context
* @return the descriptive statistics for each column of the pair
*/
public BufferedDataTable getDescStatsTable(final ExecutionContext exec) {
DataTableSpec outSpec = getDescStatsSpec();
BufferedDataContainer cont = exec.createDataContainer(outSpec);
int r = 0;
for (List<DataCell> cells : getDescStatsCells()) {
cont.addRowToTable(new DefaultRow(RowKey.createRowKey(r), cells));
r++;
}
cont.close();
BufferedDataTable outTable = cont.getTable();
return outTable;
}
use of org.knime.core.node.BufferedDataTable in project knime-core by knime.
the class TwoSampleTTestStatistics method getTTestTable.
/**
* Get the test result of the t-test, for the assumption of equal
* variance and the assumption of unequal variances.
* @param exec the execution context
* @return the t-test results
*/
public BufferedDataTable getTTestTable(final ExecutionContext exec) {
DataTableSpec outSpec = getTableSpec();
BufferedDataContainer cont = exec.createDataContainer(outSpec);
int r = 0;
for (List<DataCell> cells : getTTestCells()) {
cont.addRowToTable(new DefaultRow(RowKey.createRowKey(r), cells));
r++;
}
cont.close();
BufferedDataTable outTable = cont.getTable();
return outTable;
}
use of org.knime.core.node.BufferedDataTable in project knime-core by knime.
the class TwoSampleTTestStatistics method getGroupTable.
/**
* Get descriptive statistics.
* @param exec the execution context
* @return the descriptive statistics for each group
*/
public BufferedDataTable getGroupTable(final ExecutionContext exec) {
DataTableSpec outSpec = getGroupStatisticsSpec();
BufferedDataContainer cont = exec.createDataContainer(outSpec);
int r = 0;
for (List<DataCell> cells : getGroupStatisticsCells()) {
cont.addRowToTable(new DefaultRow(RowKey.createRowKey(r), cells));
r++;
}
cont.close();
BufferedDataTable outTable = cont.getTable();
return outTable;
}
Aggregations