Description: 粒子群算法(pso)标准测试函数验证程序。在一个m文件中包括了目前文献中用于验证的7个标准测试函数(Ackley等)、三维动态显示,粒子过分集中时打散等功能。旨在为学习和研究者pso算法的同仁提供一个功能较为完备、简单易懂的标准版本,对于初学者可以通过此程序快速的实现入门,以便将更多的精力投入到深层次的研究中去!同时愿与所有致力于此的朋友共同探讨pso算法的改进与应用方面(如多目标、动态系统等)的经验。-PSO algorithm (PSO) standard test function verification process. M in a document, including the current literature is used to validate the seven standard test function (Ackley), 3D dynamic display, and the over-concentration of particles scatters when the function. Designed for researchers to study and colleagues at the PSO algorithm to provide a more complete functional and easily understood standard version, for beginners through this program to achieve rapid entry. in order to be more energy into depth study! While willing to work with all the friends here to discuss PSO algorithm improvements and applications (such as multi-target, Dynamic systems, etc.) experience. Platform: |
Size: 3072 |
Author:jiangsx |
Hits:
Description: DateConvert:简单而快速的日期转换
DateConvert转换DATESTR(0)格式的日期向量或序列号和日期向后。
Matlab的DATENUM,DATEVEC和DATESTR接受各种不同意见,但结果他们是缓慢的。如果输入格式正是众所周知,转换可以更快:
DATENUM( 17 - 10 - 2009 11时08分23秒 ):2.97秒
DateConvert( 17 - 10 - 2009 11时08分23秒 , 号码 ):0.039秒
=>“1.3%(1000环,1.5GHz的奔腾- M的,利用Matlab 7.7)
DateConvert不*不*验证作为Matlab的日期函数输入日期:
DATEVEC( 32 - 2 - 2008 25:62:63 )的答复[2008 3 4 2 2 7]
DateConvert( 32 - 2 - 2008 25:61:67 , 载体 )的答复[2008 2 32 25 61 67]!
因此DateConvert几乎微不足道,但对速度进行了优化。我需要时间排序200 000邮票,并从217个减少到11秒的时间。
请运行单元测试TestDateVec检查的有效性和速度。
测试:利用Matlab 6.5,7.7,7.8,winxp的,32位。
纯Matlab代码,所以兼容性的MacOS,Linux操作系统,64位预期。
英语月份名称是必要的。-DateConvert: Simple but fast date conversion
DateConvert converts the DATESTR(0) format to a date vector or serial date number and backwards.
Matlab s DATENUM, DATEVEC and DATESTR accept a variety of inputs, but in consequence they are slow. If the input format is exactly known, the conversion can be much faster:
DATENUM( 17-Oct-2009 11:08:23 ): 2.97 sec
DateConvert( 17-Oct-2009 11:08:23 , number ): 0.039 sec
=> 1.3 (1000 loops, 1.5GHz Pentium-M, Matlab 7.7)
DateConvert does*not* validate the input date as Matlab s date functions:
DATEVEC( 32-Feb-2008 25:62:63 ) replies [2008 3 4 2 2 7],
DateConvert( 32-Feb-2008 25:61:67 , vector ) replies [2008 2 32 25 61 67] !
So DateConvert is nearly trivial, but optimized for speed. I needed it for sorting 200 000 time stamps and reduced the time from 217 to 11 sec.
Please run the unit-test TestDateVec to check validity and speed.
Tested: Matlab 6.5, 7.7, 7.8, WinXP, 32bit.
Pure Matlab code, so compat Platform: |
Size: 5120 |
Author:zhou |
Hits:
Description: 基于Matlab 平台根据反馈数字逻辑给出了m 序列的计算机生成源程序和m 序列的基本性质的考察代码。可根据输入的八进制
本原多项式系数生成相应的m 序列。上机结果验证了程序的正确性和有效性-Matlab-based platform based on feedback digital logic m-sequence are given computer-generated source code and the basic properties of m-sequence code visits. According to the octal input primitive polynomial coefficients generate the m-sequence. The machine results validate the correctness and effectiveness of the program Platform: |
Size: 106496 |
Author:史培霖 |
Hits: