自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 资源 (3)
  • 收藏
  • 关注

原创 【Redis】Redis0.1源码阅读(一)-准备工作

选择进程的函数是oom_badness函数(在mm/oom_kill.c中),该函数会计算每个进程的点数(0~1000)。每个进程的点数跟oom_score_adj有关,而且oom_score_adj可以被设置(-1000最低,1000最高)。为了解决这个问题,请在您的init脚本中添加“echo 1 > /proc/sys/vm/overcommit_memory”。各个版本的Redis源码可通过官网进行下载,地址为:http://download.redis.io/releases/。

2023-07-29 09:59:50 65

原创 Java基础语法实例(以LeetCode为例)

1、String排序(49)String为包装类型,无法对其现有的内容进行排序,如果想排序,需要先将String转换为char[] 类型;String str = "hello";char[] array = str.toCharArray();Arrays.sort(array);String key = new String(array);2、将map中的value读出来(49)Map<String, List<String>> map = new HashMap

2021-06-02 10:55:02 95

原创 Java中的字符判断

Java中的字符判断可以使用Character类中的静态方法常用的有:isLetter​(char ch) 是否为字母isLetterOrDigit​(char ch) 是否为数字或字母isLowerCase​(char ch) 是否为小写toLowerCase​(char ch) 转为小写更多方法见官方文档:https://docs.oracle.com/en/java/javase/15/docs/api/java.base/java/lang/Character.html...

2021-05-30 08:41:08 684

原创 java通过优先队列实现大小顶堆

Java中没有实现大顶堆或者小顶对,但是可以通过优先队列来实现。1、小顶堆PriorityQueue<Integer> minHeap = new PriorityQueue<>(k, (a,b)->a-b);2、大顶堆

2021-05-29 22:45:07 388

模糊神经网络分类器

It is known that there is no sufficient Matlab program about neuro-fuzzy classifiers. Generally, ANFIS is used as classifier. ANFIS is a function approximator program. But, the usage of ANFIS for classifications is unfavorable. For example, there are three classes, and labeled as 1, 2 and 3. The ANFIS outputs are not integer. For that reason the ANFIS outputs are rounded, and determined the class labels. But, sometimes, ANFIS can give 0 or 4 class labels. These situations are not accepted. As a result ANFIS is not suitable for classification problems. In this study, I prepared different adaptive neuro-fuzzy classifiers. In the all programs, which are given below, I used the k-means algorithm to initialize the fuzzy rules. For that reason, the user should give the number of cluster for each class. Also, Gaussian membership function is only used for fuzzy set descriptions, because of its simple derivative expressions The first of them is scg_nfclass.m. This classifier based on Jang’s neuro-fuzzy classifier [1]. The differences are about the rule weights and parameter optimization. The rule weights are adapted by the number of rule samples. The scaled conjugate gradient (SCG) algorithm is used to determine the optimum values of nonlinear parameters. The SCG is faster than the steepest descent and some second order derivative based methods. Also, it is suitable for large scale problems [2]. The second program is scg_nfclass_speedup.m. This classifier is similar the scg_nfclass. The difference is about parameter optimization. Although it is based on SCG algorithm, it is faster than the traditional SCG. Because, it used least squares estimation method for gradient estimation without using all training samples. The speeding up is seemed for medium and large scale problems [2]. The third program is scg_power_nfclass.m. Linguistic hedges are applied to the fuzzy sets of rules, and are adapted by SCG algorithm. By this way, some distinctive features are emphasized by power values, and some irrelevant features are damped with power values. The power effects in any feature are generally different for different classes. The using of linguistic hedges increase the recognition rates [3]. The last program is scg_power_nfclass_feature.m. In this program, the powers of fuzzy sets are used for feature selection [4]. If linguistic hedge values of classes in any feature are bigger than 0.5 and close to 1, this feature is relevant, otherwise it is irrelevant. The program creates a feature selection and a rejection criterion by using power values of features. References: [1] Sun CT, Jang JSR (1993). A neuro-fuzzy classifier and its applications. Proc. of IEEE Int. Conf. on Fuzzy Systems, San Francisco 1:94–98.Int. Conf. on Fuzzy Systems, San Francisco 1:94–98 [2] B. Cetişli, A. Barkana (2010). Speeding up the scaled conjugate gradient algorithm and its application in neuro-fuzzy classifier training. Soft Computing 14(4):365–378. [3] B. Cetişli (2010). Development of an adaptive neuro-fuzzy classifier using linguistic hedges: Part 1. Expert Systems with Applications, 37(8), pp. 6093-6101. [4] B. Cetişli (2010). The effect of linguistic hedges on feature selection: Part 2. Expert Systems with Applications, 37(8), pp 6102-6108. e-mail:bcetisli@mmf.sdu.edu.tr bcetisli@gmail.com

2018-10-30

脑电信号相位锁定值(eeg-plv)

脑电信号不同通道之间相位所定值,计算脑电不同电极之间的PLV

2018-10-29

名字关系系统——python语言实现

python语言实现名字关系系统。包含功能有:增加姓名、查询姓名、修改姓名、删除姓名。

2018-06-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除