Modifier and Type | Class | Description |
---|---|---|
class |
DataClusterer.PressureSink |
Modifier and Type | Field | Description |
---|---|---|
protected java.util.List<float[]> |
allData |
|
protected float[][] |
centers |
|
protected java.lang.String |
clusterOutName |
|
protected double[] |
clusterP |
|
protected int[] |
clusterPop |
|
protected int[] |
clusters |
|
protected double |
d2Max |
|
protected boolean |
first |
|
protected int[][] |
iBondCount |
|
protected int[][] |
iBonds |
|
protected int |
maxIterations |
|
protected double |
nbrDistance |
|
protected int |
nDataP |
|
protected int |
nSamplesP |
|
protected double[] |
pData |
|
protected double |
pSum |
|
protected IRandom |
random |
|
protected int |
totalBondCount |
Constructor | Description |
---|---|
DataClusterer(int nClusters,
IRandom random) |
Modifier and Type | Method | Description |
---|---|---|
void |
computePopulation() |
|
void |
findClusters() |
|
double |
getClusterNeighborDistance() |
|
double |
getMaxClusterDistance() |
|
int |
getMaxIterations() |
|
int |
getNumClusters() |
|
DataClusterer.PressureSink |
makePressureSink() |
|
void |
putData(IData data) |
Gives data to DataSink for processing, display, or whatever it does.
|
void |
putDataInfo(IDataInfo inputDataInfo) |
Informs the DataSink of the type of Data it should expect to receive.
|
void |
readClusterFile(java.lang.String filename) |
|
void |
reset() |
|
void |
setClusterFileOut(java.lang.String clusterOutName) |
|
void |
setClusterNeighborDistance(double d) |
|
void |
setMaxClusterDistance(double dMax) |
|
void |
setMaxIterations(int maxIterations) |
|
void |
setNumClusters(int nClusters) |
|
void |
writeGraph(java.lang.String filename) |
protected float[][] centers
protected final java.util.List<float[]> allData
protected boolean first
protected int[] clusterPop
protected int[] clusters
protected double nbrDistance
protected final IRandom random
protected double d2Max
protected int maxIterations
protected int nDataP
protected int nSamplesP
protected double pSum
protected double[] pData
protected int totalBondCount
protected double[] clusterP
protected int[][] iBonds
protected int[][] iBondCount
protected java.lang.String clusterOutName
public DataClusterer(int nClusters, IRandom random)
public void setNumClusters(int nClusters)
public int getNumClusters()
public void putData(IData data)
IDataSink
public void reset()
public void setClusterNeighborDistance(double d)
public double getClusterNeighborDistance()
public void setMaxClusterDistance(double dMax)
public double getMaxClusterDistance()
public int getMaxIterations()
public void setMaxIterations(int maxIterations)
public void readClusterFile(java.lang.String filename)
public void computePopulation()
public void writeGraph(java.lang.String filename)
public void setClusterFileOut(java.lang.String clusterOutName)
public void findClusters()
public void putDataInfo(IDataInfo inputDataInfo)
IDataSink
putDataInfo
in interface IDataSink
public DataClusterer.PressureSink makePressureSink()