weka.classifiers.m5
Class Dvector

java.lang.Object
  |
  +--weka.classifiers.m5.Dvector

public final class Dvector
extends java.lang.Object

Class for handling a double vector.

Author:
Yong Wang (yongwang@cs.waikato.ac.nz)

Constructor Summary
Dvector()
           
 
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
 

Constructor Detail

Dvector

public Dvector()
Method Detail

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 vector
n - 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 vector
first - the index of the first instance for printing
last - the index of the last instance for printing