Java Doc for MakeIndicator.java in  » Science » weka » weka » filters » unsupervised » attribute » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » weka » weka.filters.unsupervised.attribute 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   weka.filters.Filter
      weka.filters.unsupervised.attribute.MakeIndicator

MakeIndicator
public class MakeIndicator extends Filter implements UnsupervisedFilter,StreamableFilter,OptionHandler(Code)
A filter that creates a new dataset with a boolean attribute replacing a nominal attribute. In the new dataset, a value of 1 is assigned to an instance that exhibits a particular range of attribute values, a 0 to an instance that doesn't. The boolean attribute is coded as numeric by default.

Valid options are:

 -C <col>
 Sets the attribute index.
 -V <index1,index2-index4,...>
 Specify the list of values to indicate. First and last are
 valid indexes (default last)
 -N <index>
 Set if new boolean attribute nominal.

author:
   Eibe Frank (eibe@cs.waikato.ac.nz)
version:
   $Revision: 1.5 $


Field Summary
final static  longserialVersionUID
    

Constructor Summary
public  MakeIndicator()
    

Method Summary
public  StringattributeIndexTipText()
    
public  StringgetAttributeIndex()
     Get the index of the attribute used.
public  CapabilitiesgetCapabilities()
     Returns the Capabilities of this filter.
public  booleangetNumeric()
     Check if new attribute is to be numeric.
public  String[]getOptions()
     Gets the current settings of the filter.
public  StringgetValueIndices()
     Get the indices of the indicator values.
public  RangegetValueRange()
     Get the range containing the indicator values.
public  StringglobalInfo()
    
public  booleaninput(Instance instance)
     Input an instance for filtering.
public  EnumerationlistOptions()
     Returns an enumeration describing the available options.
public static  voidmain(String[] argv)
     Main method for testing this class.
public  StringnumericTipText()
    
public  voidsetAttributeIndex(String attIndex)
     Sets index of the attribute used.
public  booleansetInputFormat(Instances instanceInfo)
     Sets the format of the input instances.
Parameters:
  instanceInfo - an Instances object containing the input instance structure (any instances contained in the object are ignored - only the structure is required).
public  voidsetNumeric(boolean bool)
     Sets if the new Attribute is to be numeric.
public  voidsetOptions(String[] options)
     Parses a given list of options.
public  voidsetValueIndex(int index)
     Sets index of the indicator value.
public  voidsetValueIndices(String range)
     Sets indices of the indicator values.
public  voidsetValueIndicesArray(int[] indices)
    
public  StringvalueIndicesTipText()
    

Field Detail
serialVersionUID
final static long serialVersionUID(Code)
for serialization




Constructor Detail
MakeIndicator
public MakeIndicator()(Code)
Constructor




Method Detail
attributeIndexTipText
public String attributeIndexTipText()(Code)
tip text for this property suitable fordisplaying in the explorer/experimenter gui



getAttributeIndex
public String getAttributeIndex()(Code)
Get the index of the attribute used. the index of the attribute



getCapabilities
public Capabilities getCapabilities()(Code)
Returns the Capabilities of this filter. the capabilities of this object
See Also:   Capabilities



getNumeric
public boolean getNumeric()(Code)
Check if new attribute is to be numeric. true if new attribute is to be numeric



getOptions
public String[] getOptions()(Code)
Gets the current settings of the filter. an array of strings suitable for passing to setOptions



getValueIndices
public String getValueIndices()(Code)
Get the indices of the indicator values. the indices of the indicator values



getValueRange
public Range getValueRange()(Code)
Get the range containing the indicator values. the range containing the indicator values



globalInfo
public String globalInfo()(Code)
a description of the filter suitable fordisplaying in the explorer/experimenter gui



input
public boolean input(Instance instance)(Code)
Input an instance for filtering. The instance is processed and made available for output immediately.
Parameters:
  instance - the input instance true if the filtered instance may now becollected with output().
throws:
  IllegalStateException - if no input format has been set.



listOptions
public Enumeration listOptions()(Code)
Returns an enumeration describing the available options. an enumeration of all the available options.



main
public static void main(String[] argv)(Code)
Main method for testing this class.
Parameters:
  argv - should contain arguments to the filter: use -h for help



numericTipText
public String numericTipText()(Code)
tip text for this property suitable fordisplaying in the explorer/experimenter gui



setAttributeIndex
public void setAttributeIndex(String attIndex)(Code)
Sets index of the attribute used.
Parameters:
  attIndex - the index of the attribute



setInputFormat
public boolean setInputFormat(Instances instanceInfo) throws Exception(Code)
Sets the format of the input instances.
Parameters:
  instanceInfo - an Instances object containing the input instance structure (any instances contained in the object are ignored - only the structure is required). true if the outputFormat may be collected immediately
throws:
  UnsupportedAttributeTypeException - the selecte attribute is not nominal
throws:
  UnsupportedAttributeTypeException - the selecte attribute has fewer than two values.



setNumeric
public void setNumeric(boolean bool)(Code)
Sets if the new Attribute is to be numeric.
Parameters:
  bool - true if new Attribute is to be numeric



setOptions
public void setOptions(String[] options) throws Exception(Code)
Parses a given list of options.

Valid options are:

 -C <col>
 Sets the attribute index.
 -V <index1,index2-index4,...>
 Specify the list of values to indicate. First and last are
 valid indexes (default last)
 -N <index>
 Set if new boolean attribute nominal.

Parameters:
  options - the list of options as an array of strings
throws:
  Exception - if an option is not supported



setValueIndex
public void setValueIndex(int index)(Code)
Sets index of the indicator value.
Parameters:
  index - the index of the indicator value



setValueIndices
public void setValueIndices(String range)(Code)
Sets indices of the indicator values.
Parameters:
  range - the string representation of the indicator value indices
See Also:   Range



setValueIndicesArray
public void setValueIndicesArray(int[] indices)(Code)
Set which attributes are to be deleted (or kept if invert is true)
Parameters:
  indices - an array containing indexes of attributes to select.Since the array will typically come from a program, attributes are indexedfrom 0.
throws:
  InvalidArgumentException - if an invalid set of ranges is supplied



valueIndicesTipText
public String valueIndicesTipText()(Code)
tip text for this property suitable fordisplaying in the explorer/experimenter gui



Fields inherited from weka.filters.Filter
protected boolean m_FirstBatchDone(Code)(Java Doc)
protected RelationalLocator m_InputRelAtts(Code)(Java Doc)
protected StringLocator m_InputStringAtts(Code)(Java Doc)
protected boolean m_NewBatch(Code)(Java Doc)
protected RelationalLocator m_OutputRelAtts(Code)(Java Doc)
protected StringLocator m_OutputStringAtts(Code)(Java Doc)

Methods inherited from weka.filters.Filter
public static void batchFilterFile(Filter filter, String[] options) throws Exception(Code)(Java Doc)
public boolean batchFinished() throws Exception(Code)(Java Doc)
protected void bufferInput(Instance instance)(Code)(Java Doc)
protected void copyValues(Instance instance, boolean isInput)(Code)(Java Doc)
protected void copyValues(Instance instance, boolean instSrcCompat, Instances srcDataset, Instances destDataset)(Code)(Java Doc)
public static void filterFile(Filter filter, String[] options) throws Exception(Code)(Java Doc)
protected void flushInput()(Code)(Java Doc)
public Capabilities getCapabilities()(Code)(Java Doc)
public Capabilities getCapabilities(Instances data)(Code)(Java Doc)
protected Instances getInputFormat()(Code)(Java Doc)
public Instances getOutputFormat()(Code)(Java Doc)
protected void initInputLocators(Instances data, int[] indices)(Code)(Java Doc)
protected void initOutputLocators(Instances data, int[] indices)(Code)(Java Doc)
public boolean input(Instance instance) throws Exception(Code)(Java Doc)
protected Instances inputFormatPeek()(Code)(Java Doc)
public boolean isFirstBatchDone()(Code)(Java Doc)
public boolean isNewBatch()(Code)(Java Doc)
public boolean isOutputFormatDefined()(Code)(Java Doc)
public static void main(String[] args)(Code)(Java Doc)
public static Filter[] makeCopies(Filter model, int num) throws Exception(Code)(Java Doc)
public static Filter makeCopy(Filter model) throws Exception(Code)(Java Doc)
public int numPendingOutput()(Code)(Java Doc)
public Instance output()(Code)(Java Doc)
protected Instances outputFormatPeek()(Code)(Java Doc)
public Instance outputPeek()(Code)(Java Doc)
protected void push(Instance instance)(Code)(Java Doc)
protected void resetQueue()(Code)(Java Doc)
protected static void runFilter(Filter filter, String[] options)(Code)(Java Doc)
public boolean setInputFormat(Instances instanceInfo) throws Exception(Code)(Java Doc)
protected void setOutputFormat(Instances outputFormat)(Code)(Java Doc)
protected void testInputFormat(Instances instanceInfo) throws Exception(Code)(Java Doc)
public static Instances useFilter(Instances data, Filter filter) throws Exception(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.