|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.preproc.correlation.pmcc.PMCCPortObjectAndSpec
public final class PMCCPortObjectAndSpec
PortObject and PortObjectSpec of the model that's passed between the correlation nodes.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.knime.core.node.port.PortObject |
|---|
PortObject.PortObjectSerializer<T extends PortObject> |
| Nested classes/interfaces inherited from interface org.knime.core.node.port.PortObjectSpec |
|---|
PortObjectSpec.PortObjectSpecSerializer<T extends PortObjectSpec> |
| Field Summary | |
|---|---|
(package private) static double |
ROUND_ERROR_OK
Values smaller than this are considered to be 0, used to avoid round-off errors. |
static PortType |
TYPE
Convenience access field for the port type. |
| Constructor Summary | |
|---|---|
PMCCPortObjectAndSpec(String[] includes)
Creates new object, whereby no correlation values are available. |
|
PMCCPortObjectAndSpec(String[] includes,
HalfDoubleMatrix cors)
Creates new object with content. |
|
| Method Summary | |
|---|---|
(package private) BufferedDataTable |
createCorrelationMatrix(ExecutionContext con)
Creates the correlation table, used in the view and as output table. |
(package private) static DataTableSpec |
createOutSpec(String[] names)
Creates output spec for correlation table. |
String[] |
getColNames()
|
HalfDoubleMatrix |
getCorrelationMatrix()
Returns a matrix with the pairwise correlation values. |
static PortObject.PortObjectSerializer<PMCCPortObjectAndSpec> |
getPortObjectSerializer()
Serializer required by the PortObject interface. |
static PortObjectSpec.PortObjectSpecSerializer<PMCCPortObjectAndSpec> |
getPortObjectSpecSerializer()
Serializer required by the PortObjectSpec interface. |
(package private) String[] |
getReducedSet(double threshold)
Get set of column names that would be in the output table if a given correlation threshold is applied. |
PortObjectSpec |
getSpec()
Get specification to this port object. |
String |
getSummary()
Get a short summary of this PortObject. |
JComponent[] |
getViews()
The returned views are displayed in the out port view of the referring node. |
(package private) boolean |
hasData()
|
static PMCCPortObjectAndSpec |
load(ConfigRO m)
Factory method to load from config. |
void |
save(ConfigWO m)
Saves this object to a config. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PortType TYPE
static final double ROUND_ERROR_OK
| Constructor Detail |
|---|
PMCCPortObjectAndSpec(String[] includes)
includes - The columns being analyzed.
PMCCPortObjectAndSpec(String[] includes,
HalfDoubleMatrix cors)
throws InvalidSettingsException
includes - The names of the columns.cors - The correlation values
InvalidSettingsException - If cor-values don't match the columns
or are out of range.| Method Detail |
|---|
public static PortObject.PortObjectSerializer<PMCCPortObjectAndSpec> getPortObjectSerializer()
PortObject interface.
public static PortObjectSpec.PortObjectSpecSerializer<PMCCPortObjectAndSpec> getPortObjectSpecSerializer()
PortObjectSpec interface.
public PortObjectSpec getSpec()
PortObjectSpec which is used to configure any successor node
after execution, e.g. a BufferedDataTable can return a
DataTableSpec.
Subclasses should narrow the return type if possible.
getSpec in interface PortObjectPortObjectSpec or any derived spec,
never null.public String getSummary()
PortObject.
The return value will be shown in a node port's tooltip, for instance.
getSummary in interface PortObjectpublic HalfDoubleMatrix getCorrelationMatrix()
getColNames().
boolean hasData()
String[] getReducedSet(double threshold)
threshold - The threshold, in [0, 1]
BufferedDataTable createCorrelationMatrix(ExecutionContext con)
throws CanceledExecutionException
con - For progress info/cancelation
CanceledExecutionException - If canceled.static DataTableSpec createOutSpec(String[] names)
names - the column names being analyzed.
public void save(ConfigWO m)
m - To save to.
public static PMCCPortObjectAndSpec load(ConfigRO m)
throws InvalidSettingsException
m - to load from.
InvalidSettingsException - If that fails.public String[] getColNames()
public JComponent[] getViews()
getViews in interface PortObjectgetViews in interface PortObjectSpec
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||