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)
-
Ivector()
-
-
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
-
copy(int[], int)
- Makes a copy of the first n elements in an integer vector
-
toString(int[], int, int)
- Converts a string
Ivector
public Ivector()
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
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
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