constants.h
来自「fuzzy k-means algorithm for cluster」· C头文件 代码 · 共 35 行
H
35 行
#ifndef CONSTANTS_H
#define CONSTANTS_H
const int constWindowWidth = 400;
const int constWindowHeight = 400;
const int constNumCellsAcross = 40;
const int constNumCellsDown = 40;
//number of weights each node must contain. One for each element of
//the input vector. In this example it is 3 because a color is
//represented by its red, green and blue components. (RGB)
const int constSizeOfInputVector = 3;
//the number of epochs desired for the training
const int constNumIterations = 1000;
//the value of the learning rate at the start of training
const double constStartLearningRate = 0.1;
/* uncomment the following if you'd like the SOM to classify randomly created training sets */
//#define RANDOM_TRAINING_SETS
#ifdef RANDOM_TRAINING_SETS
const int constMaxNumTrainingSets = 20;
const int constMinNumTrainingSets = 5;
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?