public class Arrays
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
Arrays() |
Modifier and Type | Method and Description |
---|---|
void |
addInstanceInfo(Instance ins)
Adds the given instance info.
|
int[][] |
AjustColumnas(int[][] arr) |
double[][] |
AjustColumnasD(double[][] arr) |
int[][] |
AjustFilas(int[][] arr) |
double[][] |
AjustFilasD(double[][] arr) |
double[] |
AjustVector(double[] arr) |
int[] |
AjustVector(int[] arr) |
int[] |
DeleteVector(int[] arr,
int j) |
java.lang.String |
globalInfo()
Returns a string describing this nearest neighbour search algorithm.
|
double[] |
InsertVector(double[] arr,
double value,
int j) |
int[] |
InsertVector(int[] arr,
int value,
int j) |
double |
Max(int index) |
double |
Min(int index) |
void |
setInstances(Instances insts)
Sets the instances comprising the current neighbourhood.
|
void |
update(Instance ins)
Updates the Edit2RS to cater for the new added instance.
|
public void setInstances(Instances insts) throws java.lang.Exception
insts
- -
The set of instances on which the nearest neighbour search is
carried out. Usually this set is the training set.java.lang.Exception
public void update(Instance ins) throws java.lang.Exception
ins
- -
The instance to add. Usually this is the instance that is
added to our neighbourhood i.e. the training instances.java.lang.Exception
public void addInstanceInfo(Instance ins)
ins
- -
The instance to add the information of. Usually this is the
test instance supplied to update the range of attributes in
the distance function.public java.lang.String globalInfo()
public double Max(int index)
public double Min(int index)
public int[][] AjustFilas(int[][] arr)
public int[][] AjustColumnas(int[][] arr)
public int[] AjustVector(int[] arr)
public double[] AjustVector(double[] arr)
public double[][] AjustFilasD(double[][] arr)
public double[][] AjustColumnasD(double[][] arr)
public double[] InsertVector(double[] arr, double value, int j)
public int[] InsertVector(int[] arr, int value, int j)
public int[] DeleteVector(int[] arr, int j)