|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.mine.cluster.fuzzycmeans.FCMAlgorithm
org.knime.base.node.mine.cluster.fuzzycmeans.FCMAlgorithmMemory
public class FCMAlgorithmMemory
The Fuzzy c-means algorithm.
Constructor Summary | |
---|---|
FCMAlgorithmMemory(int nrClusters,
double fuzzifier)
Constructor for a Fuzzy c-means algorithm (with no noise detection). |
|
FCMAlgorithmMemory(int nrClusters,
double fuzzifier,
boolean calculateDelta,
double deltalambda)
Constructor for a Fuzzy c-means algorithm with noise detection. |
Method Summary | |
---|---|
double |
doOneIteration(ExecutionContext exec)
Does one iteration in the Fuzzy c-means algorithm. |
double[][] |
getConvertedData()
Please make sure to call init() first in order to guarantee that the DataTable is converted. |
double[][] |
getConvertedData(DataTable table)
|
RowKey[] |
getRowKeys()
Please make sure to call init() first in order to guarantee that the DataTable is converted. |
void |
init(int nrRows,
int dimension,
DataTable table)
Inits the cluster centers and the weight matrix. |
void |
init(RowKey[] keys,
double[][] data)
Inits the cluster centers and the weight matrix. |
Methods inherited from class org.knime.base.node.mine.cluster.fuzzycmeans.FCMAlgorithm |
---|
addTotalChange, getClusterCentres, getClusters, getDelta, getDimension, getFuzzifier, getLambda, getNrClusters, getNrRows, getTotalChange, getweightMatrix, getWeightMatrix, getWinner, init, isCalculateDelta, isNoise, noiseClustering, setClusterValue, setDelta, setTotalChange, setWeightMatrixValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FCMAlgorithmMemory(int nrClusters, double fuzzifier)
nrClusters
- the number of cluster prototypes to usefuzzifier
- allows the clusters to overlappublic FCMAlgorithmMemory(int nrClusters, double fuzzifier, boolean calculateDelta, double deltalambda)
nrClusters
- the number of clusters to usefuzzifier
- the fuzzifier, controls how much the clusters can
overlapcalculateDelta
- indicate whether delta should be calculated
automaticallydeltalambda
- the delta value, if the previous parameter is
false
, the lambda value otherwiseMethod Detail |
---|
public void init(int nrRows, int dimension, DataTable table)
init
in class FCMAlgorithm
nrRows
- number of rows in the DataTabledimension
- the dimension of the tabletable
- the table to use.public void init(RowKey[] keys, double[][] data)
keys
- the RowKeys for each data row.data
- the DaaTable as 2 dimensional double array.public double[][] getConvertedData()
public double[][] getConvertedData(DataTable table)
table
- DataTable to convert.
public RowKey[] getRowKeys()
getConvertedData()
public double doOneIteration(ExecutionContext exec) throws CanceledExecutionException
doOneIteration
in class FCMAlgorithm
exec
- execution context to cancel the execution
CanceledExecutionException
- if the operation is canceled
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |