Java Doc for DiscreteEstimatorBayes.java in  » Science » weka » weka » classifiers » bayes » net » estimate » 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.classifiers.bayes.net.estimate 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   weka.estimators.Estimator
      weka.classifiers.bayes.net.estimate.DiscreteEstimatorBayes

All known Subclasses:   weka.classifiers.bayes.net.estimate.DiscreteEstimatorFullBayes,
DiscreteEstimatorBayes
public class DiscreteEstimatorBayes extends Estimator implements Scoreable(Code)
Symbolic probability estimator based on symbol counts and a prior.
author:
   Remco Bouckaert (rrb@xm.co.nz)
version:
   $Revision: 1.6 $


Field Summary
protected  double[]m_Counts
    
protected  doublem_SumOfCounts
    
protected  doublem_fPrior
    
protected  intm_nSymbols
    
final static  longserialVersionUID
    

Constructor Summary
public  DiscreteEstimatorBayes(int nSymbols, double fPrior)
    

Method Summary
public  voidaddValue(double data, double weight)
     Add a new data value to the current estimator.
public  doublegetCount(double data)
    
public  intgetNumSymbols()
    
public  doublegetProbability(double data)
    
public  doublelogScore(int nType, int nCardinality)
    
public static  voidmain(String[] argv)
     Main method for testing this class.
public  StringtoString()
    

Field Detail
m_Counts
protected double[] m_Counts(Code)
Hold the counts



m_SumOfCounts
protected double m_SumOfCounts(Code)
Hold the sum of counts



m_fPrior
protected double m_fPrior(Code)
Holds the prior probability



m_nSymbols
protected int m_nSymbols(Code)
Holds number of symbols in distribution



serialVersionUID
final static long serialVersionUID(Code)
for serialization




Constructor Detail
DiscreteEstimatorBayes
public DiscreteEstimatorBayes(int nSymbols, double fPrior)(Code)
Constructor
Parameters:
  nSymbols - the number of possible symbols (remember to include 0)
Parameters:
  fPrior -




Method Detail
addValue
public void addValue(double data, double weight)(Code)
Add a new data value to the current estimator.
Parameters:
  data - the new data value
Parameters:
  weight - the weight assigned to the data value



getCount
public double getCount(double data)(Code)
Get a counts for a value
Parameters:
  data - the value to get the counts for the count of the supplied value



getNumSymbols
public int getNumSymbols()(Code)
Gets the number of symbols this estimator operates with the number of estimator symbols



getProbability
public double getProbability(double data)(Code)
Get a probability estimate for a value
Parameters:
  data - the value to estimate the probability of the estimated probability of the supplied value



logScore
public double logScore(int nType, int nCardinality)(Code)
Gets the log score contribution of this distribution
Parameters:
  nType - score type the score



main
public static void main(String[] argv)(Code)
Main method for testing this class.
Parameters:
  argv - should contain a sequence of integers whichwill be treated as symbolic.



toString
public String toString()(Code)
Display a representation of this estimator a string representation of the estimator



Fields inherited from weka.estimators.Estimator
protected double m_classValueIndex(Code)(Java Doc)

Methods inherited from weka.estimators.Estimator
public void addValue(double data, double weight)(Code)(Java Doc)
public void addValues(Instances data, int attrIndex) throws Exception(Code)(Java Doc)
public void addValues(Instances data, int attrIndex, double min, double max, double factor) throws Exception(Code)(Java Doc)
public void addValues(Instances data, int attrIndex, int classIndex, int classValue) throws Exception(Code)(Java Doc)
public void addValues(Instances data, int attrIndex, int classIndex, int classValue, double min, double max) throws Exception(Code)(Java Doc)
public static void buildEstimator(Estimator est, String[] options, boolean isIncremental) throws Exception(Code)(Java Doc)
public static void buildEstimator(Estimator est, Instances instances, int attrIndex, int classIndex, int classValueIndex, boolean isIncremental) throws Exception(Code)(Java Doc)
public static Estimator clone(Estimator model) throws Exception(Code)(Java Doc)
public String debugTipText()(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
public static Estimator forName(String name, String[] options) throws Exception(Code)(Java Doc)
public Capabilities getCapabilities()(Code)(Java Doc)
public boolean getDebug()(Code)(Java Doc)
public String[] getOptions()(Code)(Java Doc)
abstract public double getProbability(double data)(Code)(Java Doc)
public Enumeration listOptions()(Code)(Java Doc)
public static Estimator[] makeCopies(Estimator model, int num) throws Exception(Code)(Java Doc)
public static Estimator makeCopy(Estimator model) throws Exception(Code)(Java Doc)
public void setDebug(boolean debug)(Code)(Java Doc)
public void setOptions(String[] options) throws Exception(Code)(Java Doc)
public void testCapabilities(Instances data, int attrIndex) 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.