public class DiscreteToContinuousModifier extends BaseDatasetModifier
If dataset is a MultiPropertyDataset and you are using a property as the class variable, this modifier will store result as a new property.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
ClassName
Name of class for which to compute probability.
|
Constructor and Description |
---|
DiscreteToContinuousModifier() |
Modifier and Type | Method and Description |
---|---|
protected void |
applyDataset(Dataset data,
int index)
Run modification on Datasets
|
protected void |
applyMultiPropertyDataset(MultiPropertyDataset data,
int index)
Run modification on MultiPropertyDatasets
|
protected void |
modifyDataset(Dataset data)
Apply changes to the Dataset.
|
java.lang.String |
printUsage()
Print out required format for options.
|
void |
setClassName(java.lang.String className)
Set name of class for which to compute probability.
|
void |
setOptions(java.util.List<java.lang.Object> Options)
Set any options for this object.
|
transform
protected java.lang.String ClassName
public void setOptions(java.util.List<java.lang.Object> Options) throws java.lang.Exception
Options
Options
- Array of options as Objects - can be null
java.lang.Exception
- if problem with inputspublic java.lang.String printUsage()
Options
public void setClassName(java.lang.String className)
className
- protected void modifyDataset(Dataset data)
BaseDatasetModifier
modifyDataset
in class BaseDatasetModifier
data
- Dataset to be modifiedprotected void applyMultiPropertyDataset(MultiPropertyDataset data, int index)
data
- Dataset to be transformedindex
- Index of class being assessed