📄 vectors.html
字号:
<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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#ones(int, double)">ones</A></B>(int len,
double factor)</CODE>
<BR>
</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#ones(int, int)">ones</A></B>(int len,
int factor)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#print(double[])">print</A></B>(double[] x)</CODE>
<BR>
prints a double representation of the vector.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#print(double[][])">print</A></B>(double[][] x)</CODE>
<BR>
prints a double representation of an array.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#print(int[])">print</A></B>(int[] x)</CODE>
<BR>
prints a double representation of the vector.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#print(int[][])">print</A></B>(int[][] x)</CODE>
<BR>
prints a double representation of an array.</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#range(double, double)">range</A></B>(double start,
double end)</CODE>
<BR>
</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#range(double, double, double)">range</A></B>(double start,
double end,
double step)</CODE>
<BR>
create sequence [start : step : end] of double values.</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#range(int, int)">range</A></B>(int start,
int end)</CODE>
<BR>
</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#range(int, int, int)">range</A></B>(int start,
int end,
int step)</CODE>
<BR>
</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#rangeComplement(int[], int)">rangeComplement</A></B>(int[] set,
int length)</CODE>
<BR>
return the complement of the sorted subset of the set 0:length-1 in Matlab notation</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#removeElement(double[], int)">removeElement</A></B>(double[] vector,
int element)</CODE>
<BR>
Create new vector with data of the argument and removed element.</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#removeElement(int[], int)">removeElement</A></B>(int[] vector,
int element)</CODE>
<BR>
Create new vector with data of the argument and removed element.</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#removeElements(double[][], int[], int[])">removeElements</A></B>(double[][] matrix,
int[] rows,
int[] cols)</CODE>
<BR>
Create new matrix with data of the argument and removed rows and columns.</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#removeElements(double[], int[])">removeElements</A></B>(double[] vector,
int[] elements)</CODE>
<BR>
Create new vector with data of the argument and removed elements.</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#removeElements(int[][], int[], int[])">removeElements</A></B>(int[][] matrix,
int[] rows,
int[] cols)</CODE>
<BR>
Create new matrix with data of the argument and removed rows and columns.</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#removeElements(int[], int[])">removeElements</A></B>(int[] vector,
int[] elements)</CODE>
<BR>
Create new vector with data of the argument and removed elements.</TD>
</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#setSubVector(int[], int[], int)">setSubVector</A></B>(int[] vec,
int[] indices,
int replacement)</CODE>
<BR>
set the elements of vec at indices with the replacement.</TD>
</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#setSubVector(int[], int[], int[])">setSubVector</A></B>(int[] vec,
int[] indices,
int[] replacements)</CODE>
<BR>
set the elements of vec at indices with the respective replacements.</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#setSubVectorCopy(int[], int[], int[])">setSubVectorCopy</A></B>(int[] vec,
int[] indices,
int[] replacements)</CODE>
<BR>
set the elements of a copy of vec at indices with the respective replacements.</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#subVector(double[], int[])">subVector</A></B>(double[] vec,
int[] indices)</CODE>
<BR>
returns a copy of the vector elements with the given indices in the original vector.</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#subVector(double[], int, int)">subVector</A></B>(double[] vec,
int start,
int end)</CODE>
<BR>
</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#subVector(int[], int[])">subVector</A></B>(int[] vec,
int[] indices)</CODE>
<BR>
returns a copy of the vector elements with the given indices in the original vector.</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#sum(double[])">sum</A></B>(double[] vec)</CODE>
<BR>
sum the elements of vec</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#sum(int[])">sum</A></B>(int[] vec)</CODE>
<BR>
sum the elements of vec</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#transpose(double[][])">transpose</A></B>(double[][] mat)</CODE>
<BR>
transpose the matrix</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#transpose(int[][])">transpose</A></B>(int[][] mat)</CODE>
<BR>
transpose the matrix</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="../../../../../net/sf/javaml/clustering/mcl/Vectors.html#zeros(int)">zeros</A></B>(int len)</CODE>
<BR>
</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_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>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="ndigits"><!-- --></A><H3>
ndigits</H3>
<PRE>
public static int <B>ndigits</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="colwidth"><!-- --></A><H3>
colwidth</H3>
<PRE>
public static int <B>colwidth</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_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>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="Vectors()"><!-- --></A><H3>
Vectors</H3>
<PRE>
public <B>Vectors</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="range(int, int, int)"><!-- --></A><H3>
range</H3>
<PRE>
public static int[] <B>range</B>(int start,
int end,
int step)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>start</CODE> - <DD><CODE>end</CODE> - <DD><CODE>step</CODE> -
<DT><B>Returns:</B><DD>[start : step : end]</DL>
</DD>
</DL>
<HR>
<A NAME="range(int, int)"><!-- --></A><H3>
range</H3>
<PRE>
public static int[] <B>range</B>(int start,
int end)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>start</CODE> - <DD><CODE>end</CODE> -
<DT><B>Returns:</B><DD>[start : end]</DL>
</DD>
</DL>
<HR>
<A NAME="range(double, double, double)"><!-- --></A><H3>
range</H3>
<PRE>
public static double[] <B>range</B>(double start,
double end,
double step)</PRE>
<DL>
<DD>create sequence [start : step : end] of double values. TODO: check precision.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>start</CODE> - double value of start, if integer, use "1.0" notation.<DD><CODE>end</CODE> - double value of end, if integer, use "1.0" notation.<DD><CODE>step</CODE> - double value of step size
<DT><B>Returns:</B><DD></DL>
</DD>
</DL>
<HR>
<A NAME="range(double, double)"><!-- --></A><H3>
range</H3>
<PRE>
public static double[] <B>range</B>(double start,
double end)</PRE>
<DL>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>start</CODE> - <DD><CODE>end</CODE> -
<DT><B>Returns:</B><DD>[start : end]</DL>
</DD>
</DL>
<HR>
<A NAME="sum(double[])"><!-- --></A><H3>
sum</H3>
<PRE>
public static double <B>sum</B>(double[] vec)</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -