@KFStep(name="StatsCalculator", category="Examples", toolTipText="Compute summary stats for an attribute", iconPath="weka/gui/knowledgeflow/icons/DiamondPlain.gif") public class StatsCalculator extends BaseStep
Constructor and Description |
---|
StatsCalculator() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttName()
Get the name of the attribute to compute stats for
|
java.util.List<java.lang.String> |
getIncomingConnectionTypes()
Get a list of acceptable incoming connection types
|
java.util.List<java.lang.String> |
getOutgoingConnectionTypes()
Get a list of outgoing connection types
|
void |
processIncoming(Data data)
Process incoming data
|
void |
setAttName(java.lang.String attName)
Set the name of the attribute to compute stats for
|
void |
stepInit()
Initialize the step.
|
environmentSubstitute, getCustomEditorForStep, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, start, stop
public void stepInit() throws WekaException
WekaException
- if no attribute name is specifiedpublic java.util.List<java.lang.String> getIncomingConnectionTypes()
public java.util.List<java.lang.String> getOutgoingConnectionTypes()
public void setAttName(java.lang.String attName)
attName
- the name of the attribute to compute stats forpublic java.lang.String getAttName()
public void processIncoming(Data data) throws WekaException
processIncoming
in interface BaseStepExtender
processIncoming
in interface Step
processIncoming
in class BaseStep
data
- the payload to processWekaException
- if a problem occurs