com.rapidminer.operator.preprocessing.outlier
Class COFObject
java.lang.Object
com.rapidminer.operator.preprocessing.outlier.COFObject
- All Implemented Interfaces:
- java.lang.Comparable<COFObject>
public class COFObject
- extends java.lang.Object
- implements java.lang.Comparable<COFObject>
The COF class creates COF Objects which handle the representation of objects from the test data set in the core of
the class outlier operators. Such an object is able to store all relevant values, coordinates, dimensions, etc. for
an object (e.g. from an Example from a RapidMiner ExampleSet) as well as perform various operations, such as
computeCOF, and ComputeDistance
- Author:
- Motaz K. Saad
|
Constructor Summary |
COFObject()
|
COFObject(double[] vals,
double label,
double cof,
int id)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COFObject
public COFObject()
COFObject
public COFObject(double[] vals,
double label,
double cof,
int id)
getValues
public double[] getValues()
- Returns:
- the values
setValues
public void setValues(double[] values)
- Parameters:
values - the values to set
getValMember
public double getValMember(int dim)
- Returns:
- the value[dim]
getDimensions
public int getDimensions()
- Provides the (integer) number of dimensions of the Object. Remark: some methods actually use the this.dimensions
reference which is used by this, but this method would be able to provide the dimensions externally.
getCOF
public double getCOF()
- Returns:
- the cof
setCOF
public void setCOF(double cof)
- Parameters:
cof - the cof to set
getId
public int getId()
- Returns:
- the id
setId
public void setId(int id)
- Parameters:
id - the this.id to set
getDeviation
public double getDeviation()
- Returns:
- the deviation
setDeviation
public void setDeviation(double deviation)
- Parameters:
deviation - the deviation to set
getKDist
public double getKDist()
- Returns:
- the kDist
setKDist
public void setKDist(double dist)
- Parameters:
dist - the kDist to set
getLabel
public double getLabel()
- Returns:
- the label
setLabel
public void setLabel(double label)
- Parameters:
label - the label to set
getPcl
public double getPcl()
- Returns:
- the pcl
setPcl
public void setPcl(double pcl)
- Parameters:
pcl - the pcl to set
compareTo
public int compareTo(COFObject arg0)
- Specified by:
compareTo in interface java.lang.Comparable<COFObject>
recomputeCOF
public void recomputeCOF(double minDev,
double maxDev,
double minkDist,
double maxkDist)
computeCOF
public void computeCOF(java.util.ArrayList<COFObject> cofobjectList,
int k,
DistanceMeasure measure)
Copyright © 2001-2009 by Rapid-I