Java Doc for MedianOfWidestDimension.java in  » Science » weka » weka » core » neighboursearch » kdtrees » 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.core.neighboursearch.kdtrees 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   weka.core.neighboursearch.kdtrees.KDTreeNodeSplitter
      weka.core.neighboursearch.kdtrees.MedianOfWidestDimension

MedianOfWidestDimension
public class MedianOfWidestDimension extends KDTreeNodeSplitter implements TechnicalInformationHandler(Code)
The class that splits a KDTree node based on the median value of a dimension in which the node's points have the widest spread.

For more information see also:

Jerome H. Friedman, Jon Luis Bentley, Raphael Ari Finkel (1977). An Algorithm for Finding Best Matches in Logarithmic Expected Time. ACM Transactions on Mathematics Software. 3(3):209-226.

BibTeX:

 @article{Friedman1977,
 author = {Jerome H. Friedman and Jon Luis Bentley and Raphael Ari Finkel},
 journal = {ACM Transactions on Mathematics Software},
 month = {September},
 number = {3},
 pages = {209-226},
 title = {An Algorithm for Finding Best Matches in Logarithmic Expected Time},
 volume = {3},
 year = {1977}
 }
 


author:
   Ashraf M. Kibriya (amk14[at-the-rate]cs[dot]waikato[dot]ac[dot]nz)
version:
   $Revision: 1.1 $





Method Summary
public  TechnicalInformationgetTechnicalInformation()
     Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.
public  StringglobalInfo()
     Returns a string describing this nearest neighbour search algorithm.
protected  intpartition(int attIdx, int[] index, int l, int r)
     Partitions the instances around a pivot.
public  intselect(int attIdx, int[] indices, int left, int right, int k)
     Implements computation of the kth-smallest element according to Manber's "Introduction to Algorithms".
public  voidsplitNode(KDTreeNode node, int numNodesCreated, double[][] nodeRanges, double[][] universe)
     Splits a node into two based on the median value of the dimension in which the points have the widest spread.



Method Detail
getTechnicalInformation
public TechnicalInformation getTechnicalInformation()(Code)
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on. the technical information about this class



globalInfo
public String globalInfo()(Code)
Returns a string describing this nearest neighbour search algorithm. a description of the algorithm for displaying in theexplorer/experimenter gui



partition
protected int partition(int attIdx, int[] index, int l, int r)(Code)
Partitions the instances around a pivot. Used by quicksort and kthSmallestValue.
Parameters:
  attIdx - The attribution/dimension based on which the instances should be partitioned.
Parameters:
  index - The master index array containing indices of the instances.
Parameters:
  l - The begining index of the portion of master index array that should be partitioned.
Parameters:
  r - The end index of the portion of master index array that should be partitioned. the index of the middle element



select
public int select(int attIdx, int[] indices, int left, int right, int k)(Code)
Implements computation of the kth-smallest element according to Manber's "Introduction to Algorithms".
Parameters:
  attIdx - The dimension/attribute of the instances in which to find the kth-smallest element.
Parameters:
  indices - The master index array containing indices of the instances.
Parameters:
  left - The begining index of the portion of the master index array in which to find the kth-smallest element.
Parameters:
  right - The end index of the portion of the master index array in which to find the kth-smallest element.
Parameters:
  k - The value of k The index of the kth-smallest element



splitNode
public void splitNode(KDTreeNode node, int numNodesCreated, double[][] nodeRanges, double[][] universe) throws Exception(Code)
Splits a node into two based on the median value of the dimension in which the points have the widest spread. After splitting two new nodes are created and correctly initialised. And, node.left and node.right are set appropriately.
Parameters:
  node - The node to split.
Parameters:
  numNodesCreated - The number of nodes that so far have beencreated for the tree, so that the newly created nodes are assigned correct/meaningful node numbers/ids.
Parameters:
  nodeRanges - The attributes' range for the points insidethe node that is to be split.
Parameters:
  universe - The attributes' range for the whole point-space.
throws:
  Exception - If there is some problem in splitting thegiven node.



Fields inherited from weka.core.neighboursearch.kdtrees.KDTreeNodeSplitter
final public static int MAX(Code)(Java Doc)
final public static int MIN(Code)(Java Doc)
final public static int WIDTH(Code)(Java Doc)
protected EuclideanDistance m_EuclideanDistance(Code)(Java Doc)
protected int[] m_InstList(Code)(Java Doc)
protected Instances m_Instances(Code)(Java Doc)
protected boolean m_NormalizeNodeWidth(Code)(Java Doc)

Methods inherited from weka.core.neighboursearch.kdtrees.KDTreeNodeSplitter
protected void correctlyInitialized() throws Exception(Code)(Java Doc)
public String[] getOptions()(Code)(Java Doc)
public Enumeration listOptions()(Code)(Java Doc)
public void setEuclideanDistanceFunction(EuclideanDistance func)(Code)(Java Doc)
public void setInstanceList(int[] instList)(Code)(Java Doc)
public void setInstances(Instances inst)(Code)(Java Doc)
public void setNodeWidthNormalization(boolean normalize)(Code)(Java Doc)
public void setOptions(String[] options) throws Exception(Code)(Java Doc)
abstract public void splitNode(KDTreeNode node, int numNodesCreated, double[][] nodeRanges, double[][] universe) throws Exception(Code)(Java Doc)
protected int widestDim(double[][] nodeRanges, double[][] universe)(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.