public class Isomap extends Object implements VisualizationTransform
MDS
. It uses a geodesic distance made from
a nearest neighbor search of all the points in the data set. This
implementation also includes the extension
C-Isomap
, which further weights distances by
density.Constructor and Description |
---|
Isomap() |
Isomap(int searchNeighbors) |
Isomap(int searchNeighbors,
boolean c_isomap) |
Modifier and Type | Method and Description |
---|---|
int |
getNeighbors() |
int |
getTargetDimension() |
boolean |
isCIsomap() |
void |
setCIsomap(boolean c_isomap)
Controls whether the C-Isomap extension is used.
|
void |
setNeighbors(int searchNeighbors)
Set the number of neighbors to consider for the initial graph in Isomap
|
boolean |
setTargetDimension(int target)
Sets the target dimension to embed new dataset to.
|
<Type extends DataSet> |
transform(DataSet<Type> d)
Transforms the given data set, returning a dataset of the same type.
|
<Type extends DataSet> |
transform(DataSet<Type> d,
ExecutorService ex)
Transforms the given data set, returning a dataset of the same type.
|
public Isomap()
public Isomap(int searchNeighbors)
searchNeighbors
- the number of nearest neighbors to considerpublic Isomap(int searchNeighbors, boolean c_isomap)
searchNeighbors
- the number of nearest neighbors to considerc_isomap
- true
to use the C-Isomap extension, false
for normal Isomap.public void setNeighbors(int searchNeighbors)
searchNeighbors
- the number of nearest neighbors to considerpublic int getNeighbors()
public void setCIsomap(boolean c_isomap)
c_isomap
- true
to use the C-Isomap extension, false
for normal Isomap.public boolean isCIsomap()
true
if the C-Isomap extension is in use, false
for normal Isomap.public <Type extends DataSet> Type transform(DataSet<Type> d)
VisualizationTransform
transform
in interface VisualizationTransform
Type
- the dataset typed
- the data set to transformpublic <Type extends DataSet> Type transform(DataSet<Type> d, ExecutorService ex)
VisualizationTransform
transform
in interface VisualizationTransform
Type
- the dataset typed
- the data set to transformex
- the source of threads for parallel computationpublic int getTargetDimension()
getTargetDimension
in interface VisualizationTransform
public boolean setTargetDimension(int target)
VisualizationTransform
setTargetDimension
in interface VisualizationTransform
target
- the new target dimension size when VisualizationTransform.transform(jsat.DataSet)
is called.true
if this transform supports that dimension and it was
set, false
if the target dimension is unsupported and the
previous value will be used instead.Copyright © 2017. All rights reserved.