📄 normalize.html
字号:
<DD><CODE>java.lang.Exception</CODE> - if an error occurs<DD><CODE>java.lang.IllegalStateException</CODE> - if no input structure has been defined</DL></DD></DL><HR><A NAME="toSource(java.lang.String, weka.core.Instances)"><!-- --></A><H3>toSource</H3><PRE>public java.lang.String <B>toSource</B>(java.lang.String className, <A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A> data) throws java.lang.Exception</PRE><DL><DD>Returns a string that describes the filter as source. The filter will be contained in a class with the given name (there may be auxiliary classes), and will contain two methods with these signatures: <pre><code> // converts one row public static Object[] filter(Object[] i); // converts a full dataset (first dimension is row index) public static Object[][] filter(Object[][] i); </code></pre> where the array <code>i</code> contains elements that are either Double, String, with missing values represented as null. The generated code is public domain and comes with no warranty.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/filters/Sourcable.html#toSource(java.lang.String, weka.core.Instances)">toSource</A></CODE> in interface <CODE><A HREF="../../../../weka/filters/Sourcable.html" title="interface in weka.filters">Sourcable</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - the name that should be given to the source class.<DD><CODE>data</CODE> - the dataset used for initializing the filter<DT><B>Returns:</B><DD>the object source described by a string<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the source can't be computed</DL></DD></DL><HR><A NAME="getMinArray()"><!-- --></A><H3>getMinArray</H3><PRE>public double[] <B>getMinArray</B>()</PRE><DL><DD>Returns the calculated minimum values for the attributes in the data.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the array with the minimum values</DL></DD></DL><HR><A NAME="getMaxArray()"><!-- --></A><H3>getMaxArray</H3><PRE>public double[] <B>getMaxArray</B>()</PRE><DL><DD>Returns the calculated maximum values for the attributes in the data.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the array with the maximum values</DL></DD></DL><HR><A NAME="scaleTipText()"><!-- --></A><H3>scaleTipText</H3><PRE>public java.lang.String <B>scaleTipText</B>()</PRE><DL><DD>Returns the tip text for this property.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getScale()"><!-- --></A><H3>getScale</H3><PRE>public double <B>getScale</B>()</PRE><DL><DD>Get the scaling factor.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the factor</DL></DD></DL><HR><A NAME="setScale(double)"><!-- --></A><H3>setScale</H3><PRE>public void <B>setScale</B>(double value)</PRE><DL><DD>Sets the scaling factor.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the scaling factor</DL></DD></DL><HR><A NAME="translationTipText()"><!-- --></A><H3>translationTipText</H3><PRE>public java.lang.String <B>translationTipText</B>()</PRE><DL><DD>Returns the tip text for this property.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getTranslation()"><!-- --></A><H3>getTranslation</H3><PRE>public double <B>getTranslation</B>()</PRE><DL><DD>Get the translation.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the translation</DL></DD></DL><HR><A NAME="setTranslation(double)"><!-- --></A><H3>setTranslation</H3><PRE>public void <B>setTranslation</B>(double value)</PRE><DL><DD>Sets the translation.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the translation</DL></DD></DL><HR><A NAME="getRevision()"><!-- --></A><H3>getRevision</H3><PRE>public java.lang.String <B>getRevision</B>()</PRE><DL><DD>Returns the revision string.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/core/RevisionHandler.html#getRevision()">getRevision</A></CODE> in interface <CODE><A HREF="../../../../weka/core/RevisionHandler.html" title="interface in weka.core">RevisionHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the revision</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[] args)</PRE><DL><DD>Main method for running this filter.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>args</CODE> - should contain arguments to the filter, use -h for help</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="../../../../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> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/" target="_blank"><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/filters/unsupervised/attribute/NominalToString.html" title="class in weka.filters.unsupervised.attribute"><B>PREV CLASS</B></A> <A HREF="../../../../weka/filters/unsupervised/attribute/NumericCleaner.html" title="class in weka.filters.unsupervised.attribute"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?weka/filters/unsupervised/attribute/Normalize.html" target="_top"><B>FRAMES</B></A> <A HREF="Normalize.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 | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <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 + -