public class LLE
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
double[][] |
coordinates
Coordinate matrix.
|
smile.graph.Graph |
graph
Nearest neighbor graph.
|
int[] |
index
The original sample index.
|
Constructor and Description |
---|
LLE(int[] index,
double[][] coordinates,
smile.graph.Graph graph)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static LLE |
of(double[][] data,
int k)
Runs the LLE algorithm.
|
static LLE |
of(double[][] data,
int k,
int d)
Runs the LLE algorithm.
|
public final int[] index
public final double[][] coordinates
public smile.graph.Graph graph
public LLE(int[] index, double[][] coordinates, smile.graph.Graph graph)
index
- the original sample index.coordinates
- the coordinates.graph
- the nearest neighbor graph.public static LLE of(double[][] data, int k)
data
- the dataset.k
- k-nearest neighbor.public static LLE of(double[][] data, int k, int d)
data
- the dataset.d
- the dimension of the manifold.k
- k-nearest neighbor.