📄 neuralconnection.html
字号:
</DL></DD><DD><DL><DT><B>Returns:</B><DD>The outputs list.</DL></DD></DL><HR><A NAME="getInputNums()"><!-- --></A><H3>getInputNums</H3><PRE>public int[] <B>getInputNums</B>()</PRE><DL><DD>Use this to get easy access to the input numbers. It is not advised to change the entries in this list (use the connecting and disconnecting functions to do that)<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The input nums list.</DL></DD></DL><HR><A NAME="getOutputNums()"><!-- --></A><H3>getOutputNums</H3><PRE>public int[] <B>getOutputNums</B>()</PRE><DL><DD>Use this to get easy access to the output numbers. It is not advised to change the entries in this list (use the connecting and disconnecting functions to do that)<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The outputs list.</DL></DD></DL><HR><A NAME="getX()"><!-- --></A><H3>getX</H3><PRE>public double <B>getX</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the x coord.</DL></DD></DL><HR><A NAME="getY()"><!-- --></A><H3>getY</H3><PRE>public double <B>getY</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the y coord.</DL></DD></DL><HR><A NAME="setX(double)"><!-- --></A><H3>setX</H3><PRE>public void <B>setX</B>(double x)</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - The new value for it's x pos.</DL></DD></DL><HR><A NAME="setY(double)"><!-- --></A><H3>setY</H3><PRE>public void <B>setY</B>(double y)</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>y</CODE> - The new value for it's y pos.</DL></DD></DL><HR><A NAME="onUnit(java.awt.Graphics, int, int, int, int)"><!-- --></A><H3>onUnit</H3><PRE>public boolean <B>onUnit</B>(java.awt.Graphics g, int x, int y, int w, int h)</PRE><DL><DD>Call this function to determine if the point at x,y is on the unit.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g</CODE> - The graphics context for font size info.<DD><CODE>x</CODE> - The x coord.<DD><CODE>y</CODE> - The y coord.<DD><CODE>w</CODE> - The width of the display.<DD><CODE>h</CODE> - The height of the display.<DT><B>Returns:</B><DD>True if the point is on the unit, false otherwise.</DL></DD></DL><HR><A NAME="drawNode(java.awt.Graphics, int, int)"><!-- --></A><H3>drawNode</H3><PRE>public void <B>drawNode</B>(java.awt.Graphics g, int w, int h)</PRE><DL><DD>Call this function to draw the node.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g</CODE> - The graphics context.<DD><CODE>w</CODE> - The width of the drawing area.<DD><CODE>h</CODE> - The height of the drawing area.</DL></DD></DL><HR><A NAME="drawHighlight(java.awt.Graphics, int, int)"><!-- --></A><H3>drawHighlight</H3><PRE>public void <B>drawHighlight</B>(java.awt.Graphics g, int w, int h)</PRE><DL><DD>Call this function to draw the node highlighted.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g</CODE> - The graphics context.<DD><CODE>w</CODE> - The width of the drawing area.<DD><CODE>h</CODE> - The height of the drawing area.</DL></DD></DL><HR><A NAME="drawInputLines(java.awt.Graphics, int, int)"><!-- --></A><H3>drawInputLines</H3><PRE>public void <B>drawInputLines</B>(java.awt.Graphics g, int w, int h)</PRE><DL><DD>Call this function to draw the nodes input connections.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g</CODE> - The graphics context.<DD><CODE>w</CODE> - The width of the drawing area.<DD><CODE>h</CODE> - The height of the drawing area.</DL></DD></DL><HR><A NAME="drawOutputLines(java.awt.Graphics, int, int)"><!-- --></A><H3>drawOutputLines</H3><PRE>public void <B>drawOutputLines</B>(java.awt.Graphics g, int w, int h)</PRE><DL><DD>Call this function to draw the nodes output connections.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>g</CODE> - The graphics context.<DD><CODE>w</CODE> - The width of the drawing area.<DD><CODE>h</CODE> - The height of the drawing area.</DL></DD></DL><HR><A NAME="removeAllInputs()"><!-- --></A><H3>removeAllInputs</H3><PRE>public void <B>removeAllInputs</B>()</PRE><DL><DD>This function will remove all the inputs to this unit. In doing so it will also terminate the connections at the other end.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="removeAllOutputs()"><!-- --></A><H3>removeAllOutputs</H3><PRE>public void <B>removeAllOutputs</B>()</PRE><DL><DD>This function will remove all outputs to this unit. In doing so it will also terminate the connections at the other end.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getNumInputs()"><!-- --></A><H3>getNumInputs</H3><PRE>public int <B>getNumInputs</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The number of input connections.</DL></DD></DL><HR><A NAME="getNumOutputs()"><!-- --></A><H3>getNumOutputs</H3><PRE>public int <B>getNumOutputs</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The number of output connections.</DL></DD></DL><HR><A NAME="connect(weka.classifiers.functions.neural.NeuralConnection, weka.classifiers.functions.neural.NeuralConnection)"><!-- --></A><H3>connect</H3><PRE>public static boolean <B>connect</B>(<A HREF="../../../../weka/classifiers/functions/neural/NeuralConnection.html" title="class in weka.classifiers.functions.neural">NeuralConnection</A> s, <A HREF="../../../../weka/classifiers/functions/neural/NeuralConnection.html" title="class in weka.classifiers.functions.neural">NeuralConnection</A> t)</PRE><DL><DD>Connects two units together.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - The source unit.<DD><CODE>t</CODE> - The target unit.<DT><B>Returns:</B><DD>True if the units were connected, false otherwise.</DL></DD></DL><HR><A NAME="disconnect(weka.classifiers.functions.neural.NeuralConnection, weka.classifiers.functions.neural.NeuralConnection)"><!-- --></A><H3>disconnect</H3><PRE>public static boolean <B>disconnect</B>(<A HREF="../../../../weka/classifiers/functions/neural/NeuralConnection.html" title="class in weka.classifiers.functions.neural">NeuralConnection</A> s, <A HREF="../../../../weka/classifiers/functions/neural/NeuralConnection.html" title="class in weka.classifiers.functions.neural">NeuralConnection</A> t)</PRE><DL><DD>Disconnects two units.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>s</CODE> - The source unit.<DD><CODE>t</CODE> - The target unit.<DT><B>Returns:</B><DD>True if the units were disconnected, false if they weren't (probably due to there being no connection).</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../Tutorial.pdf"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/index.html"><FONT CLASS="NavBarFont1"><B>Weka's home</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../weka/classifiers/functions/neural/LinearUnit.html" title="class in weka.classifiers.functions.neural"><B>PREV CLASS</B></A> <A HREF="../../../../weka/classifiers/functions/neural/NeuralNode.html" title="class in weka.classifiers.functions.neural"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="NeuralConnection.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -