All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.classifiers.m5.Ivector

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

public final class Ivector
extends Object
Class for handling integer vector

Version:
$Revision: 1.2 $
Author:
Yong Wang (yongwang@cs.waikato.ac.nz)

Constructor Index

 o Ivector()

Method Index

 o combine(int[], int[])
Outputs a new integer vector which contains all the values in two integer vectors; assuming list1 and list2 are incrementally sorted and no identical integers within each integer vector
 o copy(int[], int)
Makes a copy of the first n elements in an integer vector
 o toString(int[], int, int)
Converts a string

Constructors

 o Ivector
 public Ivector()

Methods

 o toString
 public static final String toString(int a[],
                                     int first,
                                     int last)
Converts a string

Parameters:
a - an integer vector
first - the index of the first element needed printing in a[]
last - the index of the last element needed printing in a[]
Returns:
the converted string
 o copy
 public static final int[] copy(int a[],
                                int n)
Makes a copy of the first n elements in an integer vector

Parameters:
a - an integer vector
n - the number of elemented needed copying
Returns:
the copy of the integer vector
 o combine
 public static final int[] combine(int list1[],
                                   int list2[])
Outputs a new integer vector which contains all the values in two integer vectors; assuming list1 and list2 are incrementally sorted and no identical integers within each integer vector

Parameters:
list1 - integer vector 1
list2 - integer vector 2 Input: list1,list2
Returns:
the new integer vector

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home