targetfunction.html

来自「数据挖掘方面最新软件」· HTML 代码 · 共 395 行 · 第 1/2 页

HTML
395
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.5.0_13) on Mon Jul 14 01:36:25 CEST 2008 --><TITLE>TargetFunction (RapidMiner Class Documentation)</TITLE><META NAME="keywords" CONTENT="com.rapidminer.operator.generator.TargetFunction interface"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){    parent.document.title="TargetFunction (RapidMiner Class Documentation)";}</SCRIPT><NOSCRIPT></NOSCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" 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_top_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>&nbsp;</TD>  <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="class-use/TargetFunction.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&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="../../../../com/rapidminer/operator/generator/SumFunction.html" title="class in com.rapidminer.operator.generator"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../com/rapidminer/operator/generator/TargetFunction.FunctionException.html" title="class in com.rapidminer.operator.generator"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?com/rapidminer/operator/generator/TargetFunction.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="TargetFunction.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;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">com.rapidminer.operator.generator</FONT><BR>Interface TargetFunction</H2><DL><DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../com/rapidminer/operator/generator/CheckerboardClassificationFunction.html" title="class in com.rapidminer.operator.generator">CheckerboardClassificationFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/ClassificationFunction.html" title="class in com.rapidminer.operator.generator">ClassificationFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/ComplicatedFunction.html" title="class in com.rapidminer.operator.generator">ComplicatedFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/ComplicatedFunction2.html" title="class in com.rapidminer.operator.generator">ComplicatedFunction2</A>, <A HREF="../../../../com/rapidminer/operator/generator/DrillerOscillationFunction.html" title="class in com.rapidminer.operator.generator">DrillerOscillationFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/GaussianFunction.html" title="class in com.rapidminer.operator.generator">GaussianFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/GaussianMixtureFunction.html" title="class in com.rapidminer.operator.generator">GaussianMixtureFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/GlobalAndLocalPatternsFunction.html" title="class in com.rapidminer.operator.generator">GlobalAndLocalPatternsFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/GridFunction.html" title="class in com.rapidminer.operator.generator">GridFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/InteractionClassificationFunction.html" title="class in com.rapidminer.operator.generator">InteractionClassificationFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/MultiClassificationFunction.html" title="class in com.rapidminer.operator.generator">MultiClassificationFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/NonLinearFunction.html" title="class in com.rapidminer.operator.generator">NonLinearFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/OneThirdClassification.html" title="class in com.rapidminer.operator.generator">OneThirdClassification</A>, <A HREF="../../../../com/rapidminer/operator/generator/OneVariableNonLinearFunction.html" title="class in com.rapidminer.operator.generator">OneVariableNonLinearFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/PolynomialClassificationFunction.html" title="class in com.rapidminer.operator.generator">PolynomialClassificationFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/PolynomialFunction.html" title="class in com.rapidminer.operator.generator">PolynomialFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/QuadraticClassificationFunction.html" title="class in com.rapidminer.operator.generator">QuadraticClassificationFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/RandomClassificationFunction.html" title="class in com.rapidminer.operator.generator">RandomClassificationFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/RandomDotsClassificationFunction.html" title="class in com.rapidminer.operator.generator">RandomDotsClassificationFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/RandomFunction.html" title="class in com.rapidminer.operator.generator">RandomFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/RegressionFunction.html" title="class in com.rapidminer.operator.generator">RegressionFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/RingClusteringFunction.html" title="class in com.rapidminer.operator.generator">RingClusteringFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/SimpleNonLinearClassificationFunction.html" title="class in com.rapidminer.operator.generator">SimpleNonLinearClassificationFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/SimplePolynomialClassificationFunction.html" title="class in com.rapidminer.operator.generator">SimplePolynomialClassificationFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/SimpleSinusFunction.html" title="class in com.rapidminer.operator.generator">SimpleSinusFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/SimpleSuperpositionFunction.html" title="class in com.rapidminer.operator.generator">SimpleSuperpositionFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/SincFunction.html" title="class in com.rapidminer.operator.generator">SincFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/SinusClassificationFunction.html" title="class in com.rapidminer.operator.generator">SinusClassificationFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/SinusFrequencyFunction.html" title="class in com.rapidminer.operator.generator">SinusFrequencyFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/SinusFunction.html" title="class in com.rapidminer.operator.generator">SinusFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/SinusWithTrendFunction.html" title="class in com.rapidminer.operator.generator">SinusWithTrendFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/SpiralClusteringFunction.html" title="class in com.rapidminer.operator.generator">SpiralClusteringFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/SquarePulseFunction.html" title="class in com.rapidminer.operator.generator">SquarePulseFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/SumClassificationFunction.html" title="class in com.rapidminer.operator.generator">SumClassificationFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/SumFunction.html" title="class in com.rapidminer.operator.generator">SumFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/TransactionDatasetFunction.html" title="class in com.rapidminer.operator.generator">TransactionDatasetFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/TriangularFunction.html" title="class in com.rapidminer.operator.generator">TriangularFunction</A>, <A HREF="../../../../com/rapidminer/operator/generator/TwoGaussiansClassificationFunction.html" title="class in com.rapidminer.operator.generator">TwoGaussiansClassificationFunction</A></DD></DL><HR><DL><DT><PRE>public interface <B>TargetFunction</B></DL></PRE><P>A target function which is used for the <A HREF="../../../../com/rapidminer/operator/generator/ExampleSetGenerator.html" title="class in com.rapidminer.operator.generator"><CODE>ExampleSetGenerator</CODE></A> operator. All target function will need an empty constructor since they are initialized via reflection.<P><P><DL><DT><B>Version:</B></DT>  <DD>$Id: TargetFunction.java,v 1.3 2008/05/09 19:22:51 ingomierswa Exp $</DD><DT><B>Author:</B></DT>  <DD>Ingo Mierswa</DD></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><A NAME="nested_class_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Nested Class Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/generator/TargetFunction.FunctionException.html" title="class in com.rapidminer.operator.generator">TargetFunction.FunctionException</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Will be thrown if an error occurrs during the calculation of the target function.</TD></TR></TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/generator/TargetFunction.html#calculate(double[])">calculate</A></B>(double[]&nbsp;args)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calculates the target function on arguments.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;double[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/generator/TargetFunction.html#createArguments(int, com.rapidminer.tools.RandomGenerator)">createArguments</A></B>(int&nbsp;dimension,                <A HREF="../../../../com/rapidminer/tools/RandomGenerator.html" title="class in com.rapidminer.tools">RandomGenerator</A>&nbsp;random)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates and returns a number of arguments.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/generator/TargetFunction.html#getLabel()">getLabel</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the label attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/generator/TargetFunction.html#init(com.rapidminer.tools.RandomGenerator)">init</A></B>(<A HREF="../../../../com/rapidminer/tools/RandomGenerator.html" title="class in com.rapidminer.tools">RandomGenerator</A>&nbsp;random)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Should be called before the data is created.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/generator/TargetFunction.html#setLowerArgumentBound(double)">setLowerArgumentBound</A></B>(double&nbsp;lower)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the lower bound for the arguments.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/generator/TargetFunction.html#setTotalNumberOfAttributes(int)">setTotalNumberOfAttributes</A></B>(int&nbsp;number)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the maximal number of attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/generator/TargetFunction.html#setTotalNumberOfExamples(int)">setTotalNumberOfExamples</A></B>(int&nbsp;number)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the maximal number of examples.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor">

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?