|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.algorithm.result.clustering.SubspaceClusterMap
public class SubspaceClusterMap
Encapsulates a mapping of subspace dimensionalities to a list of set of ids forming a cluster in a specific subspace dimension.
Field Summary | |
---|---|
private Map<Integer,List<Set<Integer>>> |
clusters
The map holding the clusters. |
private Map<Integer,List<LinearEquationSystem>> |
dependencies
The map holding the basis vectors of the clusters. |
private int |
noiseDimensionality
The dimensionality of noise. |
Constructor Summary | |
---|---|
SubspaceClusterMap(int noiseDimensionality)
Provides a mapping of subspace dimensionalities to a list of set of ids forming a cluster in a specific subspace dimension. |
Method Summary | |
---|---|
void |
add(Integer dimensionality,
Set<Integer> ids,
Database<ParameterizationFunction> database)
Adds a cluster with the specified subspace dimensionality and the specified ids to this map. |
void |
addToNoise(Set<Integer> ids)
Adds the specified ids to noise. |
private Database<RealVector> |
buildDerivatorDB(Database<ParameterizationFunction> database,
Set<Integer> ids)
Builds a database for the derivator consisting of the ids in the specified interval. |
List<Set<Integer>> |
getCluster(Integer subspaceDimension)
Returns the list of clusters to which this map maps the specified subspaceDimension. |
List<LinearEquationSystem> |
getDependencies(Integer subspaceDimension)
Returns the list of dependencies to which this map maps the specified subspaceDimension. |
int |
numClusters()
Returns the number of clusters (excl. noise) in this map. |
private LinearEquationSystem |
runDerivator(Database<ParameterizationFunction> database,
int dimensionality,
Set<Integer> ids)
Runs the derivator on the specified inerval and assigns all points having a distance less then the standard deviation of the derivator model to the model to this model. |
List<Integer> |
subspaceDimensionalities()
Returns a sorted list view of the subspace dimensionalities contained in this cluster map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Map<Integer,List<Set<Integer>>> clusters
private Map<Integer,List<LinearEquationSystem>> dependencies
private int noiseDimensionality
Constructor Detail |
---|
public SubspaceClusterMap(int noiseDimensionality)
noiseDimensionality
- the dimensionality of noiseMethod Detail |
---|
public void add(Integer dimensionality, Set<Integer> ids, Database<ParameterizationFunction> database)
dimensionality
- the subspace dimensionality of the clusterids
- the ids forming the clusterdatabase
- the database holding the objectspublic void addToNoise(Set<Integer> ids)
ids
- the ids forming the noisepublic List<Integer> subspaceDimensionalities()
public List<Set<Integer>> getCluster(Integer subspaceDimension)
subspaceDimension
- subspace dimension whose associated clusters are to be returned
public List<LinearEquationSystem> getDependencies(Integer subspaceDimension)
subspaceDimension
- subspace dimension whose associated dependencies are to be returned
public int numClusters()
private LinearEquationSystem runDerivator(Database<ParameterizationFunction> database, int dimensionality, Set<Integer> ids)
database
- the database containing the parametrization functionsids
- the ids to build the modeldimensionality
- the dimensionality of the subspace
private Database<RealVector> buildDerivatorDB(Database<ParameterizationFunction> database, Set<Integer> ids) throws UnableToComplyException
database
- the database storing the paramterization functionsids
- the ids to build the database from
UnableToComplyException
- if initialization of the database is not possible
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |