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

📄 algorithmlp.html,v

📁 包含了模式识别中常用的一些分类器设计算法
💻 HTML,V
📖 第 1 页 / 共 2 页
字号:
</TR></TABLE><A NAME="AlgorithmLP()"><!-- --></A><H3>AlgorithmLP</H3><PRE>public <B>AlgorithmLP</B>()</PRE><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="initialize()"><!-- --></A><H3>initialize</H3><PRE>public boolean <B>initialize</B>()</PRE><DL><DD>Implements the initialize() method in the base class. Initializes member data and prepares for execution of first step. This method "resets" the algorithm.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="Algorithm.html#initialize()">initialize</A></CODE> in class <CODE><A HREF="Algorithm.html" title="class in &lt;Unnamed&gt;">Algorithm</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>returns true if sets of data are valid</DL></DD></DL><HR><A NAME="checkdata_LP(java.util.Vector)"><!-- --></A><H3>checkdata_LP</H3><PRE>public boolean <B>checkdata_LP</B>(java.util.Vector&nbsp;lp)</PRE><DL><DD>Validates the class entered by user for Linear Prediction<P><DD><DL><DT><B>Parameters:</B><DD><CODE>lp</CODE> - <DT><B>Returns:</B><DD>true if data is Vector lp is valid. It is invalid           if the size of lp is 1 or any element is larger than the           the previous element</DL></DD></DL><HR><A NAME="run()"><!-- --></A><H3>run</H3><PRE>public void <B>run</B>()</PRE><DL><DD>Implementation of the run function from the Runnable interface. Determines what the current step is and calls the appropriate method.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>run</CODE> in interface <CODE>java.lang.Runnable</CODE><DT><B>Specified by:</B><DD><CODE><A HREF="Algorithm.html#run()">run</A></CODE> in class <CODE><A HREF="Algorithm.html" title="class in &lt;Unnamed&gt;">Algorithm</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="interpol(java.util.Vector, java.util.Vector)"><!-- --></A><H3>interpol</H3><PRE>public void <B>interpol</B>(java.util.Vector&lt;<A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A>&gt;&nbsp;v,                     java.util.Vector&lt;<A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A>&gt;&nbsp;iset)</PRE><DL><DD>Calculates the interpolated points for the data inputs<P><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - input data points<DD><CODE>iset</CODE> - interpolated data points</DL></DD></DL><HR><A NAME="spline(double[], double[], double[], int)"><!-- --></A><H3>spline</H3><PRE>public void <B>spline</B>(double[]&nbsp;x,                   double[]&nbsp;y,                   double[]&nbsp;y2,                   int&nbsp;size)</PRE><DL><DD>Actually interpolates the points<P><DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - array containing the x coordinates of datapoints<DD><CODE>y</CODE> - array containing the y coordinates of datapoints<DD><CODE>y2</CODE> - array containing the interpolated y coordinates<DD><CODE>size</CODE> - the size of the array to be interpolated</DL></DD></DL><HR><A NAME="splint(MyPoint, MyPoint, MyPoint, double[], int)"><!-- --></A><H3>splint</H3><PRE>public void <B>splint</B>(<A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A>&nbsp;u1,                   <A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A>&nbsp;u2,                   <A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A>&nbsp;r,                   double[]&nbsp;y2,                   int&nbsp;i)</PRE><DL><DD>Interpolates for a point between the two known points using Cubic Interpolation<P><DD><DL><DT><B>Parameters:</B><DD><CODE>u1</CODE> - start point for the interpolation<DD><CODE>u2</CODE> - end point for the interpolation<DD><CODE>r</CODE> - returning point, basically the interpolated point<DD><CODE>y2</CODE> - array used for reassigning of r<DD><CODE>i</CODE> - the sample number</DL></DD></DL><HR><A NAME="mean(java.util.Vector, java.util.Vector)"><!-- --></A><H3>mean</H3><PRE>public double <B>mean</B>(java.util.Vector&lt;<A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A>&gt;&nbsp;v,                   java.util.Vector&lt;<A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A>&gt;&nbsp;mv)</PRE><DL><DD>Calculates the mean and the zero-mean data points<P><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - orginal datapoints<DD><CODE>mv</CODE> - zero mean datapoints<DT><B>Returns:</B><DD>The average in a double</DL></DD></DL><HR><A NAME="autoCorrelation()"><!-- --></A><H3>autoCorrelation</H3><PRE>public void <B>autoCorrelation</B>()</PRE><DL><DD>Computes the autocorrelation coeffient from the data sets<P><DD><DL></DL></DD></DL><HR><A NAME="autocorrelate(java.util.Vector, double[])"><!-- --></A><H3>autocorrelate</H3><PRE>public void <B>autocorrelate</B>(java.util.Vector&nbsp;v,                          double[]&nbsp;autoCoeff_co)</PRE><DL><DD>Actaully computes the autocorrelation coefficients<P><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - Vector of datapoints<DD><CODE>autoCoeff_co</CODE> - array of autocorrelation coefficients</DL></DD></DL><HR><A NAME="lpcCoefficient()"><!-- --></A><H3>lpcCoefficient</H3><PRE>public void <B>lpcCoefficient</B>()</PRE><DL><DD>Computes the Linear Prediction coefficient from the data sets<P><DD><DL></DL></DD></DL><HR><A NAME="calculate_lpc(double[], double[], double[])"><!-- --></A><H3>calculate_lpc</H3><PRE>public double <B>calculate_lpc</B>(double[]&nbsp;auto_coeff,                            double[]&nbsp;lpc,                            double[]&nbsp;rc_reg)</PRE><DL><DD>Actually calculate the LP coefficient and the Residual Error  Energy, and Reflection Coefficients<P><DD><DL><DT><B>Parameters:</B><DD><CODE>auto_coeff</CODE> - array of auto correlation coefficients<DD><CODE>lpc</CODE> - array of linear prediction coefficients<DD><CODE>rc_reg</CODE> - array of reflection coefficients<DT><B>Returns:</B><DD>residual error energy in a double</DL></DD></DL><HR><A NAME="final_estimate()"><!-- --></A><H3>final_estimate</H3><PRE>public void <B>final_estimate</B>()</PRE><DL><DD>Calculates the estimated points for the data inputs<P><DD><DL></DL></DD></DL><HR><A NAME="estimate(java.util.Vector, java.util.Vector, double, double[])"><!-- --></A><H3>estimate</H3><PRE>public void <B>estimate</B>(java.util.Vector&lt;<A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A>&gt;&nbsp;iset,                     java.util.Vector&lt;<A HREF="MyPoint.html" title="class in &lt;Unnamed&gt;">MyPoint</A>&gt;&nbsp;y_estimate,                     double&nbsp;avg,                     double[]&nbsp;final_lpc)</PRE><DL><DD>Estimates the amplitude based on the LP coeficients.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>iset</CODE> - interpolated data points<DD><CODE>y_estimate</CODE> - predicted final signal data points<DD><CODE>avg</CODE> - mean of the original datapoints given<DD><CODE>final_lpc</CODE> - array of final linear prediction coefficients</DL></DD></DL><HR><A NAME="actual_error(java.util.Vector, java.util.Vector)"><!-- --></A><H3>actual_error</H3><PRE>public double <B>actual_error</B>(java.util.Vector&nbsp;y_estimate,                           java.util.Vector&nbsp;iset)</PRE><DL><DD>Compute the actual error from the given data points and the estimated values.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>y_estimate</CODE> - datapoints of the estimated datapoints<DD><CODE>iset</CODE> - original datapoints<DT><B>Returns:</B><DD>actual error energy in a double</DL></DD></DL><HR><A NAME="step2_display()"><!-- --></A><H3>step2_display</H3><PRE>public void <B>step2_display</B>()</PRE><DL><DD>Displays LP order, Error Energy and Reflection Coefficients<P><DD><DL></DL></DD></DL><HR><A NAME="display_result(double[], double[], double[], double, double, int, int)"><!-- --></A><H3>display_result</H3><PRE>public void <B>display_result</B>(double[]&nbsp;auto_coeff,                           double[]&nbsp;refCoef,                           double[]&nbsp;final_lpc,                           double&nbsp;est_err,                           double&nbsp;act_err,                           int&nbsp;index,                           int&nbsp;length)</PRE><DL><DD>Display the results in the process box<P><DD><DL><DT><B>Parameters:</B><DD><CODE>auto_coeff</CODE> - Auto Correlation Coefficients<DD><CODE>refCoef</CODE> - Refelction Coefficient<DD><CODE>final_lpc</CODE> - Linear Prediction Coefficients<DD><CODE>est_err</CODE> - Estimated Error<DD><CODE>act_err</CODE> - Actual Error<DD><CODE>length</CODE> - Length of the data points</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=2 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="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="AlgorithmLDAPCA.html" title="class in &lt;Unnamed&gt;"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="AlgorithmNN.html" title="class in &lt;Unnamed&gt;"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="index.html?AlgorithmLP.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="AlgorithmLP.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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 + -