weka.classifiers.m5
Class Dvector
java.lang.Object
|
+--weka.classifiers.m5.Dvector
- public final class Dvector
- extends Object
Class for handling a double vector.
- Version:
- $Revision: 1.4 $
- Author:
- Yong Wang (yongwang@cs.waikato.ac.nz)
Method Summary |
static double[] |
copy(double[] a,
int n)
Returns a copy of the first n elements of a double vector |
static void |
print(double[] a,
int first,
int last)
Prints the indexed elements in a double vector |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Dvector
public Dvector()
copy
public static final double[] copy(double[] a,
int n)
- Returns a copy of the first n elements of a double vector
- Parameters:
a
- a double vectorn
- a[0:n-1] will be copied
- Returns:
- a copy of a[0:n-1]
print
public static final void print(double[] a,
int first,
int last)
- Prints the indexed elements in a double vector
- Parameters:
a
- a double vectorfirst
- the index of the first instance for printinglast
- the index of the last instance for printing