📄 neuralconnection.html
字号:
<DD>The numbering for the connections at the other end of the out lines.</DL><HR><A NAME="m_numInputs"><!-- --></A><H3>m_numInputs</H3><PRE>protected int <B>m_numInputs</B></PRE><DL><DD>The number of inputs.</DL><HR><A NAME="m_numOutputs"><!-- --></A><H3>m_numOutputs</H3><PRE>protected int <B>m_numOutputs</B></PRE><DL><DD>The number of outputs.</DL><HR><A NAME="m_unitValue"><!-- --></A><H3>m_unitValue</H3><PRE>protected double <B>m_unitValue</B></PRE><DL><DD>The output value for this unit, NaN if not calculated.</DL><HR><A NAME="m_unitError"><!-- --></A><H3>m_unitError</H3><PRE>protected double <B>m_unitError</B></PRE><DL><DD>The error value for this unit, NaN if not calculated.</DL><HR><A NAME="m_weightsUpdated"><!-- --></A><H3>m_weightsUpdated</H3><PRE>protected boolean <B>m_weightsUpdated</B></PRE><DL><DD>True if the weights have already been updated.</DL><HR><A NAME="m_id"><!-- --></A><H3>m_id</H3><PRE>protected java.lang.String <B>m_id</B></PRE><DL><DD>The string that uniquely (provided naming is done properly) identifies this unit.</DL><HR><A NAME="m_type"><!-- --></A><H3>m_type</H3><PRE>protected int <B>m_type</B></PRE><DL><DD>The type of unit this is.</DL><HR><A NAME="m_x"><!-- --></A><H3>m_x</H3><PRE>protected double <B>m_x</B></PRE><DL><DD>The x coord of this unit purely for displaying purposes.</DL><HR><A NAME="m_y"><!-- --></A><H3>m_y</H3><PRE>protected double <B>m_y</B></PRE><DL><DD>The y coord of this unit purely for displaying purposes.</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="NeuralConnection(java.lang.String)"><!-- --></A><H3>NeuralConnection</H3><PRE>public <B>NeuralConnection</B>(java.lang.String id)</PRE><DL><DD>Constructs The unit with the basic connection information prepared for use.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getId()"><!-- --></A><H3>getId</H3><PRE>public java.lang.String <B>getId</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The identity string of this unit.</DL></DD></DL><HR><A NAME="getType()"><!-- --></A><H3>getType</H3><PRE>public int <B>getType</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The type of this unit.</DL></DD></DL><HR><A NAME="setType(int)"><!-- --></A><H3>setType</H3><PRE>public void <B>setType</B>(int t)</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - The new type of this unit.</DL></DD></DL><HR><A NAME="reset()"><!-- --></A><H3>reset</H3><PRE>public abstract void <B>reset</B>()</PRE><DL><DD>Call this to reset the unit for another run. It is expected by that this unit will call the reset functions of all input units to it. It is also expected that this will not be done if the unit has already been reset (or atleast appears to be).<DD><DL></DL></DD></DL><HR><A NAME="outputValue(boolean)"><!-- --></A><H3>outputValue</H3><PRE>public abstract double <B>outputValue</B>(boolean calculate)</PRE><DL><DD>Call this to get the output value of this unit.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>calculate</CODE> - True if the value should be calculated if it hasn't been already.<DT><B>Returns:</B><DD>The output value, or NaN, if the value has not been calculated.</DL></DD></DL><HR><A NAME="errorValue(boolean)"><!-- --></A><H3>errorValue</H3><PRE>public abstract double <B>errorValue</B>(boolean calculate)</PRE><DL><DD>Call this to get the error value of this unit.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>calculate</CODE> - True if the value should be calculated if it hasn't been already.<DT><B>Returns:</B><DD>The error value, or NaN, if the value has not been calculated.</DL></DD></DL><HR><A NAME="weightValue(int)"><!-- --></A><H3>weightValue</H3><PRE>public double <B>weightValue</B>(int n)</PRE><DL><DD>Call this to get the weight value on a particular connection.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - The connection number to get the weight for, -1 if The threshold weight should be returned.<DT><B>Returns:</B><DD>This function will default to return 1. If overridden, it should return the value for the specified connection or if -1 then it should return the threshold value. If no value exists for the specified connection, NaN will be returned.</DL></DD></DL><HR><A NAME="updateWeights(double, double)"><!-- --></A><H3>updateWeights</H3><PRE>public void <B>updateWeights</B>(double l, double m)</PRE><DL><DD>Call this function to update the weight values at this unit. After the weights have been updated at this unit, All the input connections will then be called from this to have their weights updated.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - The learning Rate to use.<DD><CODE>m</CODE> - The momentum to use.</DL></DD></DL><HR><A NAME="getInputs()"><!-- --></A><H3>getInputs</H3><PRE>public <A HREF="../../../weka/classifiers/neural/NeuralConnection.html">NeuralConnection</A>[] <B>getInputs</B>()</PRE><DL><DD>Use this to get easy access to the inputs. It is not advised to change the entries in this list (use the connecting and disconnecting functions to do that)<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The inputs list.</DL></DD></DL><HR><A NAME="getOutputs()"><!-- --></A><H3>getOutputs</H3><PRE>public <A HREF="../../../weka/classifiers/neural/NeuralConnection.html">NeuralConnection</A>[] <B>getOutputs</B>()</PRE><DL><DD>Use this to get easy access to the outputs. It is not advised to change the entries in this list (use the connecting and disconnecting functions to do that)<DD><DL></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)<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)<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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -