public class ApproximateSets
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
int[][] |
inferior
Aprox Inferior
|
protected Arrays |
m_Arrays |
int[][] |
superior
Aprox Superior
|
Constructor and Description |
---|
ApproximateSets() |
Modifier and Type | Method and Description |
---|---|
void |
addInstanceInfo(Instance ins)
Adds the given instance info.
|
int[][] |
byClasses() |
void |
CalAproxInfSup(int value1,
double value2) |
double |
CompRasgos(Instance arr1,
int indice)
Compares the features between the instance given and the one with the index given.
|
int[] |
Diferencia(int[] arr1,
int[] arr2) |
int[][] |
Diferencias(int[][] arr1,
int[][] arr2) |
int[][] |
getInf() |
int[][] |
getSup() |
java.lang.String |
globalInfo()
Returns a string describing this nearest neighbour search algorithm.
|
int[][] |
InfBound(int[][] equivalencia,
int[][] arrclases) |
int[][] |
RelSimil(double[][] m,
int signo,
double valor)
Computes the similarity between this set and the one given.
|
void |
setInf(int[][] newInf) |
void |
setInstances(Instances insts)
Sets the instances comprising the current neighbourhood.
|
void |
setSup(int[][] newSup) |
int[][] |
SupBound(int[][] equivalencia,
int[][] arrclases) |
int[] |
Union(int[][] arr) |
void |
update(Instance ins)
Updates the Edit2RS to cater for the new added instance.
|
protected Arrays m_Arrays
public int[][] inferior
public int[][] superior
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 int[][] getInf()
public void setInf(int[][] newInf)
public int[][] getSup()
public void setSup(int[][] newSup)
public void CalAproxInfSup(int value1, double value2) throws java.lang.Exception
java.lang.Exception
public double CompRasgos(Instance arr1, int indice)
arr1
- given instance.indice
- given index of an instance of this set.public int[][] RelSimil(double[][] m, int signo, double valor)
m
- given set.signo
- sign flag.valor
- value determined by the sign flagpublic int[] Union(int[][] arr)
public int[][] InfBound(int[][] equivalencia, int[][] arrclases)
public int[][] SupBound(int[][] equivalencia, int[][] arrclases)
public int[] Diferencia(int[] arr1, int[] arr2)
public int[][] Diferencias(int[][] arr1, int[][] arr2)
public int[][] byClasses()