public class CSV extends AbstractOutput
-p <range> The range of attributes to print in addition to the classification. (default: none)
-distribution Whether to turn on the output of the class distribution. Only for nominal class attributes. (default: off)
-decimals <num> The number of digits after the decimal point. (default: 3)
-file <path> The file to store the output in, instead of outputting it on stdout. Gets ignored if the supplied path is a directory. (default: .)
-suppress In case the data gets stored in a file, then this flag can be used to suppress the regular output. (default: not suppressed)
-use-tab Whether to use TAB as separator instead of comma. (default: comma)
| Constructor and Description |
|---|
CSV() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplay()
Returns a short display text, to be used in comboboxes.
|
String[] |
getOptions()
Gets the current option settings for the OptionHandler.
|
boolean |
getUseTab()
Returns whether tab is used as separator.
|
String |
globalInfo()
Returns a string describing the output generator.
|
Enumeration<Option> |
listOptions()
Returns an enumeration of all the available options..
|
void |
setOptions(String[] options)
Sets the OptionHandler's options using the given list.
|
void |
setUseTab(boolean value)
Sets whether to use tab instead of comma as separator.
|
String |
useTabTipText()
Returns the tip text for this property.
|
attributesTipText, fromCommandline, generatesOutput, getAttributes, getBuffer, getDefaultNumDecimals, getHeader, getNumDecimals, getOutputDistribution, getOutputFile, getSuppressOutput, numDecimalsTipText, outputDistributionTipText, outputFileTipText, print, print, printClassification, printClassification, printClassifications, printClassifications, printFooter, printHeader, setAttributes, setBuffer, setHeader, setNumDecimals, setOutputDistribution, setOutputFile, setSuppressOutput, suppressOutputTipTextpublic String globalInfo()
globalInfo in class AbstractOutputpublic String getDisplay()
getDisplay in class AbstractOutputpublic Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class AbstractOutputpublic void setOptions(String[] options) throws Exception
setOptions in interface OptionHandlersetOptions in class AbstractOutputoptions - the list of options as an array of stringsException - if an option is not supportedpublic String[] getOptions()
getOptions in interface OptionHandlergetOptions in class AbstractOutputpublic void setUseTab(boolean value)
value - true if tab is to be usedpublic boolean getUseTab()
public String useTabTipText()
Copyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.