|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.data.normalize.Normalizer
public final class Normalizer
A wrapper table to normalize all DataRows. Three methods of normalization are available:
DataTableSpec
with
generateNewSpec(DataTableSpec, String[])
, because
IntCell
columns are converted to
DoubleCell
columns.
Constructor Summary | |
---|---|
Normalizer(BufferedDataTable table,
String[] columns)
Prepares a Normalizer to process the buffered data table table . |
|
Normalizer(StatisticsTable table,
String[] columns)
Prepares a Normalizer to process the StatisticsTable table (actually no traversing is done here). |
Method Summary | |
---|---|
AffineTransTable |
doDecimalScaling(ExecutionMonitor exec)
Does the decimal scaling. |
AffineTransTable |
doMinMaxNorm(double newmax,
double newmin,
ExecutionMonitor exec)
Does the Min-Max Normalization. |
AffineTransTable |
doZScoreNorm(ExecutionMonitor exec)
Does the Z-Score Normalization. |
static DataTableSpec |
generateNewSpec(DataTableSpec inspec,
String[] columns)
Creates a new DataTableSpec. |
String |
getErrorMessage()
|
(package private) void |
setErrorMessage(String message)
Sets an error message, if something went wrong during initialization. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Normalizer(BufferedDataTable table, String[] columns)
table
. Only columns as contained in the array argument
are considered.
table
- table to be wrappedcolumns
- to work onDataTable.getDataTableSpec()
public Normalizer(StatisticsTable table, String[] columns)
table
(actually no traversing is done here).
table
- table to be wrappedcolumns
- to work onDataTable.getDataTableSpec()
Method Detail |
---|
public static final DataTableSpec generateNewSpec(DataTableSpec inspec, String[] columns)
inspec
- the DataTableSpec of the input tablecolumns
- the columns that are normalized
public AffineTransTable doMinMaxNorm(double newmax, double newmin, ExecutionMonitor exec) throws CanceledExecutionException
newmax
- the new maximumnewmin
- the new minimumexec
- an object to check for user cancelations. Can be
null
.
CanceledExecutionException
- if user canceledpublic AffineTransTable doZScoreNorm(ExecutionMonitor exec) throws CanceledExecutionException
exec
- an object to check for user cancelations. Can be
null
.
CanceledExecutionException
- if user canceledpublic AffineTransTable doDecimalScaling(ExecutionMonitor exec) throws CanceledExecutionException
exec
- an object to check for user cancelations. Can be
null
.
CanceledExecutionException
- if user canceledvoid setErrorMessage(String message)
message
- the message to set.public String getErrorMessage()
null
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |