public class FCMAlgorithmMemory extends FCMAlgorithm
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
double[][] |
getConvertedData(DataTable table,
Random random) |
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(int nrRows,
int dimension,
DataTable table,
Random random)
Inits the cluster centers and the weight matrix.
|
void |
init(RowKey[] keys,
double[][] data)
Inits the cluster centers and the weight matrix.
|
void |
init(RowKey[] keys,
double[][] data,
Random random)
Inits the cluster centers and the weight matrix.
|
addTotalChange, getClusterCentres, getClusters, getDelta, getDimension, getFuzzifier, getLambda, getNrClusters, getNrRows, getTotalChange, getweightMatrix, getWeightMatrix, getWinner, init, init, isCalculateDelta, isNoise, noiseClustering, setClusterValue, setDelta, setTotalChange, setWeightMatrixValue
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 otherwisepublic 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(int nrRows, int dimension, DataTable table, Random random)
init
in class FCMAlgorithm
nrRows
- number of rows in the DataTabledimension
- the dimension of the tabletable
- the table to userandom
- a random number generator for initializing the cluster centerspublic void init(RowKey[] keys, double[][] data)
keys
- the RowKeys for each data row.data
- the DaaTable as 2 dimensional double array.public void init(RowKey[] keys, double[][] data, Random random)
keys
- the RowKeys for each data rowdata
- the DaaTable as 2 dimensional double arrayrandom
- a random number generator for initializing the cluster centerspublic double[][] getConvertedData()
public double[][] getConvertedData(DataTable table)
table
- DataTable to convert.public double[][] getConvertedData(DataTable table, Random random)
table
- DataTable to convertrandom
- a random number generator for initializing the cluster centerspublic RowKey[] getRowKeys()
getConvertedData()
public double doOneIteration(ExecutionContext exec) throws CanceledExecutionException
doOneIteration
in class FCMAlgorithm
exec
- execution context to cancel the executionCanceledExecutionException
- if the operation is canceled
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.