📄 neuralconnection.html
字号:
<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.<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.<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.<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.<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.<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="connectInput(weka.classifiers.neural.NeuralConnection, int)"><!-- --></A><H3>connectInput</H3><PRE>protected boolean <B>connectInput</B>(<A HREF="../../../weka/classifiers/neural/NeuralConnection.html">NeuralConnection</A> i, int n)</PRE><DL><DD>This will connect the specified unit to be an input to this unit.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - The unit.<DD><CODE>n</CODE> - It's connection number for this connection.<DT><B>Returns:</B><DD>True if the connection was made, false otherwise.</DL></DD></DL><HR><A NAME="allocateInputs()"><!-- --></A><H3>allocateInputs</H3><PRE>protected void <B>allocateInputs</B>()</PRE><DL><DD>This will allocate more space for input connection information if the arrays for this have been filled up.<DD><DL></DL></DD></DL><HR><A NAME="connectOutput(weka.classifiers.neural.NeuralConnection, int)"><!-- --></A><H3>connectOutput</H3><PRE>protected boolean <B>connectOutput</B>(<A HREF="../../../weka/classifiers/neural/NeuralConnection.html">NeuralConnection</A> o, int n)</PRE><DL><DD>This will connect the specified unit to be an output to this unit.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>o</CODE> - The unit.<DD><CODE>n</CODE> - It's connection number for this connection.<DT><B>Returns:</B><DD>True if the connection was made, false otherwise.</DL></DD></DL><HR><A NAME="allocateOutputs()"><!-- --></A><H3>allocateOutputs</H3><PRE>protected void <B>allocateOutputs</B>()</PRE><DL><DD>Allocates more space for output connection information if the arrays have been filled up.<DD><DL></DL></DD></DL><HR><A NAME="disconnectInput(weka.classifiers.neural.NeuralConnection, int)"><!-- --></A><H3>disconnectInput</H3><PRE>protected boolean <B>disconnectInput</B>(<A HREF="../../../weka/classifiers/neural/NeuralConnection.html">NeuralConnection</A> i, int n)</PRE><DL><DD>This will disconnect the input with the specific connection number From this node (only on this end however).<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - The unit to disconnect.<DD><CODE>n</CODE> - The connection number at the other end, -1 if all the connections to this unit should be severed.<DT><B>Returns:</B><DD>True if the connection was removed, false if the connection was not found.</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.<DD><DL></DL></DD></DL><HR><A NAME="changeInputNum(int, int)"><!-- --></A><H3>changeInputNum</H3><PRE>protected void <B>changeInputNum</B>(int n, int v)</PRE><DL><DD>Changes the connection value information for one of the connections.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - The connection number to change.<DD><CODE>v</CODE> - The value to change it to.</DL></DD></DL><HR><A NAME="disconnectOutput(weka.classifiers.neural.NeuralConnection, int)"><!-- --></A><H3>disconnectOutput</H3><PRE>protected boolean <B>disconnectOutput</B>(<A HREF="../../../weka/classifiers/neural/NeuralConnection.html">NeuralConnection</A> o, int n)</PRE><DL><DD>This will disconnect the output with the specific connection number From this node (only on this end however).<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>o</CODE> - The unit to disconnect.<DD><CODE>n</CODE> - The connection number at the other end, -1 if all the connections to this unit should be severed.<DT><B>Returns:</B><DD>True if the connection was removed, false if the connection was not found.</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.<DD><DL></DL></DD></DL><HR><A NAME="changeOutputNum(int, int)"><!-- --></A><H3>changeOutputNum</H3><PRE>protected void <B>changeOutputNum</B>(int n, int v)</PRE><DL><DD>Changes the connection value information for one of the connections.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - The connection number to change.<DD><CODE>v</CODE> - The value to change it to.</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.neural.NeuralConnection, weka.classifiers.neural.NeuralConnection)"><!-- --></A><H3>connect</H3><PRE>public static boolean <B>connect</B>(<A HREF="../../../weka/classifiers/neural/NeuralConnection.html">NeuralConnection</A> s, <A HREF="../../../weka/classifiers/neural/NeuralConnection.html">NeuralConnection</A> t)</PRE><DL><DD>Connects two units together.<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.neural.NeuralConnection, weka.classifiers.neural.NeuralConnection)"><!-- --></A><H3>disconnect</H3><PRE>public static boolean <B>disconnect</B>(<A HREF="../../../weka/classifiers/neural/NeuralConnection.html">NeuralConnection</A> s, <A HREF="../../../weka/classifiers/neural/NeuralConnection.html">NeuralConnection</A> t)</PRE><DL><DD>Disconnects two units.<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 NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <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="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</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/neural/LinearUnit.html"><B>PREV CLASS</B></A> <A HREF="../../../weka/classifiers/neural/NeuralNetwork.html"><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></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <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><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -