⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 numbernode.html

📁 weka是机器学习和数据挖掘领域最有影响力的开源项目之一
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD><CODE><B><A HREF="../../../../weka/gui/ensembleLibraryEditor/tree/NumberNode.html#getZeroValue()">getZeroValue</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;figures out the class of this node's object and returns a new instance of it initialized with the value of "0".</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/gui/ensembleLibraryEditor/tree/NumberNode.html#lessThan(java.lang.Number, java.lang.Number)">lessThan</A></B>(java.lang.Number&nbsp;a,         java.lang.Number&nbsp;b)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tests if the first argument is greater than the second among two objects that are instances of one of the child classes of java.lang.Number</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Number</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/gui/ensembleLibraryEditor/tree/NumberNode.html#multiplyNumbers(java.lang.Number, java.lang.Number)">multiplyNumbers</A></B>(java.lang.Number&nbsp;a,                java.lang.Number&nbsp;b)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;multiplies two objects that are instances of one of the child classes of java.lang.Number</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/gui/ensembleLibraryEditor/tree/NumberNode.html#roundDouble(double)">roundDouble</A></B>(double&nbsp;a)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method rounds a double to the number of decimal places defined by scale</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;float</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/gui/ensembleLibraryEditor/tree/NumberNode.html#roundFloat(float)">roundFloat</A></B>(float&nbsp;a)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method rounds a float to the number of decimal places defined by scale</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/gui/ensembleLibraryEditor/tree/NumberNode.html#setIteratorType(int)">setIteratorType</A></B>(int&nbsp;newValue)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setter for this nodes iteratorType which should be one of the three enumerated values</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/gui/ensembleLibraryEditor/tree/NumberNode.html#setSelected(boolean)">setSelected</A></B>(boolean&nbsp;newValue)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setter for the node selected state</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/gui/ensembleLibraryEditor/tree/NumberNode.html#setUserObject(java.lang.Object)">setUserObject</A></B>(java.lang.Object&nbsp;o)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this is a simple filter for the setUserObject method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/gui/ensembleLibraryEditor/tree/NumberNode.html#setValue(java.lang.Number)">setValue</A></B>(java.lang.Number&nbsp;newValue)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setter for this nodes object</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/gui/ensembleLibraryEditor/tree/NumberNode.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;returns a string representation</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_javax.swing.tree.DefaultMutableTreeNode"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class javax.swing.tree.DefaultMutableTreeNode</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent</CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="NOT_ITERATOR"><!-- --></A><H3>NOT_ITERATOR</H3><PRE>public static final int <B>NOT_ITERATOR</B></PRE><DL><DD>the enumerated value indicating a node is not an iterator<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#weka.gui.ensembleLibraryEditor.tree.NumberNode.NOT_ITERATOR">Constant Field Values</A></DL></DL><HR><A NAME="TIMES_EQUAL"><!-- --></A><H3>TIMES_EQUAL</H3><PRE>public static final int <B>TIMES_EQUAL</B></PRE><DL><DD>the enumerated value indicating a node is a *= iterator<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#weka.gui.ensembleLibraryEditor.tree.NumberNode.TIMES_EQUAL">Constant Field Values</A></DL></DL><HR><A NAME="PLUS_EQUAL"><!-- --></A><H3>PLUS_EQUAL</H3><PRE>public static final int <B>PLUS_EQUAL</B></PRE><DL><DD>the enumerated value indicating a node is a += iterator<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#weka.gui.ensembleLibraryEditor.tree.NumberNode.PLUS_EQUAL">Constant Field Values</A></DL></DL><HR><A NAME="scale"><!-- --></A><H3>scale</H3><PRE>public static final int <B>scale</B></PRE><DL><DD>this defines the number of decimal places we care about, we arbitrarily chose 7 thinking that anything beyond this is overkill<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#weka.gui.ensembleLibraryEditor.tree.NumberNode.scale">Constant Field Values</A></DL></DL><HR><A NAME="epsilon"><!-- --></A><H3>epsilon</H3><PRE>public static final double <B>epsilon</B></PRE><DL><DD>This is the maximum floating point value that we care about when testing for equality.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#weka.gui.ensembleLibraryEditor.tree.NumberNode.epsilon">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="NumberNode(java.lang.String, java.lang.Number, int, boolean, java.lang.String)"><!-- --></A><H3>NumberNode</H3><PRE>public <B>NumberNode</B>(java.lang.String&nbsp;text,                  java.lang.Number&nbsp;value,                  int&nbsp;iteratorType,                  boolean&nbsp;checkable,                  java.lang.String&nbsp;toolTipText)</PRE><DL><DD>The constructor simply initializes all of the member variables<P><DL><DT><B>Parameters:</B><DD><CODE>text</CODE> - the name<DD><CODE>value</CODE> - the actual value<DD><CODE>iteratorType</CODE> - the iterator type<DD><CODE>checkable</CODE> - true if it's checkable<DD><CODE>toolTipText</CODE> - the tooltip to use</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="roundDouble(double)"><!-- --></A><H3>roundDouble</H3><PRE>public static double <B>roundDouble</B>(double&nbsp;a)</PRE><DL><DD>This method rounds a double to the number of decimal places defined by scale<P><DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the value to round<DT><B>Returns:</B><DD>the rounded value</DL></DD></DL><HR><A NAME="roundFloat(float)"><!-- --></A><H3>roundFloat</H3><PRE>public static float <B>roundFloat</B>(float&nbsp;a)</PRE><DL><DD>This method rounds a float to the number of decimal places defined by scale<P><DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the value to round<DT><B>Returns:</B><DD>the rounded value</DL></DD></DL><HR><A NAME="getSelected()"><!-- --></A><H3>getSelected</H3><PRE>public boolean <B>getSelected</B>()</PRE><DL><DD>getter for the node selected state<P><DD><DL><DT><B>Returns:</B><DD>whether or not this node is selected</DL></DD></DL><HR><A NAME="setSelected(boolean)"><!-- --></A><H3>setSelected</H3><PRE>public void <B>setSelected</B>(boolean&nbsp;newValue)</PRE><DL><DD>setter for the node selected state<P><DD><DL><DT><B>Parameters:</B><DD><CODE>newValue</CODE> - the new selected state</DL></DD></DL><HR><A NAME="getValue()"><!-- --></A><H3>getValue</H3><PRE>public java.lang.Number <B>getValue</B>()</PRE><DL><DD>getter for this node's object<P><DD><DL><DT><B>Returns:</B><DD>the current value</DL></DD></DL><HR><A NAME="setValue(java.lang.Number)"><!-- --></A><H3>setValue</H3><PRE>public void <B>setValue</B>(java.lang.Number&nbsp;newValue)</PRE><DL><DD>setter for this nodes object<P><DD><DL><DT><B>Parameters:</B><DD><CODE>newValue</CODE> - the new value to use</DL></DD></DL><HR><A NAME="getIteratorType()"><!-- --></A><H3>getIteratorType</H3><PRE>public int <B>getIteratorType</B>()</PRE><DL><DD>getter for this node's iteratorType which will be one of the three enumerated values<P><DD><DL>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -