bitmatrix.html
来自「weka是机器学习和数据挖掘领域最有影响力的开源项目之一」· HTML 代码 · 共 402 行
HTML
402 行
<!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:45 NZDT 2007 --><TITLE>BitMatrix</TITLE><META NAME="keywords" CONTENT="weka.classifiers.misc.monotone.BitMatrix interface"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="BitMatrix";}</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/AbsoluteLossFunction.html" title="class in weka.classifiers.misc.monotone"><B>PREV CLASS</B></A> <A HREF="../../../../weka/classifiers/misc/monotone/BooleanBitMatrix.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/BitMatrix.html" target="_top"><B>FRAMES</B></A> <A HREF="BitMatrix.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 | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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>Interface BitMatrix</H2><DL><DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../weka/classifiers/misc/monotone/BooleanBitMatrix.html" title="class in weka.classifiers.misc.monotone">BooleanBitMatrix</A></DD></DL><HR><DL><DT><PRE>public interface <B>BitMatrix</B></DL></PRE><P>Interface specifying a simple matrix of booleans. Operations are limited to setting, getting, clearing and counting. <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><!-- ========== 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> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/BitMatrix.html#clear(int, int)">clear</A></B>(int row, int column)</CODE><BR> Clears the bit at the specified position.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/BitMatrix.html#columnCount(int)">columnCount</A></B>(int column)</CODE><BR> Counts the number of bits that are set in the specified column.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/BitMatrix.html#columns()">columns</A></B>()</CODE><BR> Gets the number of columns.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/BitMatrix.html#get(int, int)">get</A></B>(int row, int column)</CODE><BR> Return the element a the specified position.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/BitMatrix.html#rowCount(int)">rowCount</A></B>(int row)</CODE><BR> Counts the number of bits that are set in the specified row.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/BitMatrix.html#rows()">rows</A></B>()</CODE><BR> Gets the number of rows.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/BitMatrix.html#set(int, int)">set</A></B>(int row, int column)</CODE><BR> Sets the bit at the specified position to <code> true.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/misc/monotone/BitMatrix.html#set(int, int, boolean)">set</A></B>(int row, int column, boolean bool)</CODE><BR> Sets the bit at the specified position to the specified value.</TD></TR></TABLE> <P><!-- ============ 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="get(int, int)"><!-- --></A><H3>get</H3><PRE>boolean <B>get</B>(int row, int column)</PRE><DL><DD>Return the element a the specified position.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>row</CODE> - the row of the position<DD><CODE>column</CODE> - the column of the position<DT><B>Returns:</B><DD><code> true </code> if the bit at the specified position is set, <code> false </code> otherwise</DL></DD></DL><HR><A NAME="set(int, int, boolean)"><!-- --></A><H3>set</H3><PRE>boolean <B>set</B>(int row, int column, boolean bool)</PRE><DL><DD>Sets the bit at the specified position to the specified value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>row</CODE> - the row of the position<DD><CODE>column</CODE> - the column of the position<DD><CODE>bool</CODE> - the value to fill in<DT><B>Returns:</B><DD>the value of <code> bool </code></DL></DD></DL><HR><A NAME="set(int, int)"><!-- --></A><H3>set</H3><PRE>boolean <B>set</B>(int row, int column)</PRE><DL><DD>Sets the bit at the specified position to <code> true. </code> The return value indicates whether anything has changed, i.e. if the bit at the specified position was <code> true </code> before calling this method, then <code> false </code> is returned (and the bit remains <code> true </code> of course). In the other case <code> true </code> is returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>row</CODE> - the row of the position<DD><CODE>column</CODE> - the column of the position<DT><B>Returns:</B><DD><code> true </code> if the bit was actually set, <code> false </code> otherwise</DL></DD></DL><HR><A NAME="clear(int, int)"><!-- --></A><H3>clear</H3><PRE>boolean <B>clear</B>(int row, int column)</PRE><DL><DD>Clears the bit at the specified position. The return value indicates whether the bit was actually cleared, i.e. if the bit was originally <code> true </code> then <code> true </code> is returned. In the other case <code> false </code> is returned.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>row</CODE> - the row of the position<DD><CODE>column</CODE> - the column of the position<DT><B>Returns:</B><DD><code> true </code> if the bit was actually cleared, <code> false </code> otherwise</DL></DD></DL><HR><A NAME="rows()"><!-- --></A><H3>rows</H3><PRE>int <B>rows</B>()</PRE><DL><DD>Gets the number of rows.<P><DD><DL><DT><B>Returns:</B><DD>the number of rows of the matrix</DL></DD></DL><HR><A NAME="columns()"><!-- --></A><H3>columns</H3><PRE>int <B>columns</B>()</PRE><DL><DD>Gets the number of columns.<P><DD><DL><DT><B>Returns:</B><DD>the number of columns of the matrix</DL></DD></DL><HR><A NAME="columnCount(int)"><!-- --></A><H3>columnCount</H3><PRE>int <B>columnCount</B>(int column)</PRE><DL><DD>Counts the number of bits that are set in the specified column.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>column</CODE> - index of the column<DT><B>Returns:</B><DD>the number of bits that are set in the requested column</DL></DD></DL><HR><A NAME="rowCount(int)"><!-- --></A><H3>rowCount</H3><PRE>int <B>rowCount</B>(int row)</PRE><DL><DD>Counts the number of bits that are set in the specified row.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>row</CODE> - index of the row<DT><B>Returns:</B><DD>the number of bits that are set in the requested row</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/classifiers/misc/monotone/AbsoluteLossFunction.html" title="class in weka.classifiers.misc.monotone"><B>PREV CLASS</B></A> <A HREF="../../../../weka/classifiers/misc/monotone/BooleanBitMatrix.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/BitMatrix.html" target="_top"><B>FRAMES</B></A> <A HREF="BitMatrix.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 | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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 + =
减小字号Ctrl + -
显示快捷键?