instancesutil.html
来自「weka是机器学习和数据挖掘领域最有影响力的开源项目之一」· HTML 代码 · 共 1,072 行 · 第 1/4 页
HTML
1,072 行
<!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_10) on Fri Jan 26 16:34:46 NZDT 2007 --><TITLE>InstancesUtil</TITLE><META NAME="keywords" CONTENT="weka.classifiers.misc.monotone.InstancesUtil class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="InstancesUtil";}</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> </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/classifiers/misc/monotone/InstancesComparator.html" title="class in weka.classifiers.misc.monotone"><B>PREV CLASS</B></A> <A HREF="../../../../weka/classifiers/misc/monotone/MultiDimensionalSort.html" title="class in weka.classifiers.misc.monotone"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?weka/classifiers/misc/monotone/InstancesUtil.html" target="_top"><B>FRAMES</B></A> <A HREF="InstancesUtil.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_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">weka.classifiers.misc.monotone</FONT><BR>Class InstancesUtil</H2><PRE>java.lang.Object <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>weka.classifiers.misc.monotone.InstancesUtil</B></PRE><HR><DL><DT><PRE>public class <B>InstancesUtil</B><DT>extends java.lang.Object</DL></PRE><P>This class contains some methods for working with objects of type <code> Instance </code> and <code> Instances, </code> not provided by there respective classes. <p> This implementation is part of the master's thesis: "Studie en implementatie van instantie-gebaseerde algoritmen voor gesuperviseerd rangschikken", Stijn Lievens, Ghent University, 2004. </p><P><P><DL><DT><B>Version:</B></DT> <DD>$Revision: 1.1 $</DD><DT><B>Author:</B></DT> <DD>Stijn Lievens (stijn.lievens@ugent.be)</DD></DL><HR><P><!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_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>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/InstancesUtil.html#InstancesUtil()">InstancesUtil</A></B>()</CODE><BR> </TD></TR></TABLE> <!-- ========== 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>static void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/InstancesUtil.html#classifyInstances(weka.core.Instances, weka.classifiers.Classifier)">classifyInstances</A></B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A> instances, <A HREF="../../../../weka/classifiers/Classifier.html" title="class in weka.classifiers">Classifier</A> classifier)</CODE><BR> Classify a set of instances using a given classifier.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/InstancesUtil.html#comparable(weka.core.Instance, weka.core.Instance)">comparable</A></B>(<A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A> i1, <A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A> i2)</CODE><BR> Checks if two instances are comparable in the data space, this is ignoring the class attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/InstancesUtil.html#containsIgnoreClass(weka.core.Instances, weka.core.Instance)">containsIgnoreClass</A></B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A> instances, <A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A> instance)</CODE><BR> Get the index of an instance in a set of instances, where instances are compared ignoring the class attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../weka/estimators/DiscreteEstimator.html" title="class in weka.estimators">DiscreteEstimator</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/InstancesUtil.html#countValues(weka.core.Instances, int)">countValues</A></B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A> instances, int attributeIndex)</CODE><BR> Return a histogram of the values for the specified attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/InstancesUtil.html#doubt(weka.core.Instance, weka.core.Instance)">doubt</A></B>(<A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A> i1, <A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A> i2)</CODE><BR> Checks it two instances give rise to doubt.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/InstancesUtil.html#equalIgnoreClass(weka.core.Instance, weka.core.Instance)">equalIgnoreClass</A></B>(<A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A> i1, <A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A> i2)</CODE><BR> Compares two instances, ignoring the class attribute (if any)</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/InstancesUtil.html#generateRandomSample(weka.core.Instances, int, java.util.Random)">generateRandomSample</A></B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A> headerInfo, int numberOfExamples, java.util.Random random)</CODE><BR> Generates a random sample of instances.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../weka/classifiers/misc/monotone/BooleanBitMatrix.html" title="class in weka.classifiers.misc.monotone">BooleanBitMatrix</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/InstancesUtil.html#getBitMatrix(weka.core.Instances)">getBitMatrix</A></B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A> instances)</CODE><BR> Calculates the relation (poset) formed by the instances.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/InstancesUtil.html#isHomogeneous(weka.core.Instances)">isHomogeneous</A></B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A> instances)</CODE><BR> Check if all instances have the same class value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/InstancesUtil.html#isMonotone(weka.core.Instances)">isMonotone</A></B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A> instances)</CODE><BR> Checks if the given data set is monotone.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/InstancesUtil.html#isQuasiMonotone(weka.core.Instances, weka.core.Instances)">isQuasiMonotone</A></B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A> ground, <A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A> other)</CODE><BR> Test if a set of instances is quasi monotone.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/InstancesUtil.html#maximalExtension(weka.core.Instances, weka.core.Instance)">maximalExtension</A></B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A> instances, <A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A> instance)</CODE><BR> Computes the maximal extension for a given instance.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/InstancesUtil.html#maximalExtension(weka.core.Instances, weka.core.Instance, double)">maximalExtension</A></B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A> instances, <A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A> instance, double maxValue)</CODE><BR> Computes the maximal extension of a given instance, but the maximal value returned is <code> maxValue.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/InstancesUtil.html#minimalExtension(weka.core.Instances, weka.core.Instance)">minimalExtension</A></B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A> instances, <A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A> instance)</CODE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?