![]() | [using it] | Interface Manipulation Package v4.0 (2008-06-25) | ![]() | ©copyright | ![]() |
java.lang.Objectimp.classifier.Mapping
public class Mapping
Defines a numerical data mapping.
Constructor Summary | |
---|---|
Mapping(double step,
int size)
Constructs a mapping for the given parameter. |
Method Summary | |
---|---|
Mapping |
add(double[] data)
Add a data sample and return this. |
double[] |
getData(int index)
Gets the n-th input data point. |
int |
getDim()
Gets the reduce representation dimension. |
double |
getDistance(int i1,
int i2)
Gets the local geodesic distance between two data point. |
double |
getDotprod(int i1,
int i2)
Gets the local geodesic dot-product between two data point. |
double[] |
getMap(int index)
Gets the reduce representation of a given input. |
int[] |
getNeighbors(int index)
Gets the local neighborhood of the n-th input data point. |
int |
size()
Returns the number of data input. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Mapping(double step, int size)
step
- [optional, default is huge] Maximal distance between two points in the same neighborhood.size
- [optional, default is huge] Maximal size of a neighborhood.
Either a size or a step must be defined.Method Detail |
---|
public Mapping add(double[] data)
data
- data input value.public double[] getData(int index)
index
- data index.
public int getDim()
public double getDistance(int i1, int i2)
i1
- data point index.i2
- data point index.
public double getDotprod(int i1, int i2)
i1
- data point index.i2
- data point index.
public double[] getMap(int index)
index
- data index.
public int[] getNeighbors(int index)
index
- data index.
public int size()