public class ReplacingMissingValuesFilter extends AbstractStreamFilter
Modifier and Type | Class and Description |
---|---|
static class |
ReplacingMissingValuesFilter.MapUtil |
Modifier and Type | Field and Description |
---|---|
protected double[] |
columnsStatistics |
protected HashMap<Double,Integer>[] |
frequencies |
protected double[] |
lastNominalValues |
MultiChoiceOption |
nominalReplacementStrategyOption |
protected int |
nominalSelectedStrategy |
protected int |
numAttributes |
protected long[] |
numberOfSamples |
FloatOption |
numericalConstantValueOption |
protected int |
numericalSelectedStrategy |
MultiChoiceOption |
numericReplacementStrategyOption |
inputStream
config
Constructor and Description |
---|
ReplacingMissingValuesFilter() |
Modifier and Type | Method and Description |
---|---|
void |
getDescription(StringBuilder sb,
int indent)
Returns a string representation of this object.
|
InstancesHeader |
getHeader()
Gets the header of this stream.
|
String |
getPurposeString()
Dictionary with option texts and objects
|
InstanceExample |
nextInstance()
Gets the next example from this stream.
|
protected void |
restartImpl()
Restarts this filter.
|
estimatedRemainingInstances, filterInstance, hasMoreInstances, isRestartable, prepareForUseImpl, restart, setInputStream
copy, getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, measureByteSize
public MultiChoiceOption numericReplacementStrategyOption
public MultiChoiceOption nominalReplacementStrategyOption
public FloatOption numericalConstantValueOption
protected int numAttributes
protected double[] columnsStatistics
protected long[] numberOfSamples
protected double[] lastNominalValues
protected int numericalSelectedStrategy
protected int nominalSelectedStrategy
public String getPurposeString()
AbstractOptionHandler
getPurposeString
in interface OptionHandler
getPurposeString
in class AbstractOptionHandler
public InstancesHeader getHeader()
ExampleStream
public InstanceExample nextInstance()
ExampleStream
nextInstance
in interface ExampleStream
nextInstance
in class AbstractStreamFilter
public void getDescription(StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentprotected void restartImpl()
AbstractStreamFilter
AbstractStreamFilter
must implement restartImpl
.
restart
uses restartImpl
in AbstractStreamFilter
.restartImpl
in class AbstractStreamFilter
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.