本文讨论白化(Whitening),以及白化与 PCA(Principal Component Analysis) 和 ZCA(Zero-phase Component Analysis) 的关系。 白化 什么是白化? 维基百科给出的描述是: 即对数据做白化处理必须满足两个条件: 使数据的不同维度去 ...
分类:
其他好文 时间:
2017-10-04 23:08:33
阅读次数:
1791
283. Move Zeroes【easy】 Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero ele ...
分类:
其他好文 时间:
2017-10-03 13:32:36
阅读次数:
184
原文 if 语句 >>> x = int(input("Please enter an integer: ")) Please enter an integer: 42 >>> if x < 0: ... x = 0 ... print('Negative changed to zero') ... ...
分类:
编程语言 时间:
2017-10-02 23:03:06
阅读次数:
371
转载 两圆相交分如下集中情况:相离、相切、相交、包含。 设两圆圆心分别是O1和O2,半径分别是r1和r2,设d为两圆心距离。又因为两圆有大有小,我们设较小的圆是O1。 相离相切的面积为零,代码如下: [cpp] view plain copy print? double d = sqrt((a.x- ...
分类:
其他好文 时间:
2017-10-02 20:20:50
阅读次数:
257
本文目录:1.1 背景说明:网络数据传输的全过程1.2 zero-copy:mmap()1.3 zero-copy:sendfile()1.4 zero-copy:splice()1.5 zero-copy:tee()1.6 写时复制技术 1.1 背景说明:网络数据传输的全过程 在每一次网络io过程 ...
分类:
其他好文 时间:
2017-09-30 21:02:27
阅读次数:
241
我在网上看到了一点神奇的代码,用来计算一个数字末尾连续零的个数。 刚好我在优化一个I2C读写函数(只写入I2C特定bit),觉得这个很有用。经过尝试,确实没问题。 下面我隆重介绍一下: Count the consecutive zero bits (trailing) on the right w ...
分类:
其他好文 时间:
2017-09-30 19:56:52
阅读次数:
170
随着互联网的发展,网站应用的规模不断扩大,常规的垂直应用架构已无法应对,分布式服务架构以及流动计算架构势在必行,亟需一个治理系统确保架构有条不紊的演进。 随着互联网的发展,网站应用的规模不断扩大,常规的垂直应用架构已无法应对,分布式服务架构以及流动计算架构势在必行,亟需一个治理系统确保架构有条不紊的 ...
分类:
其他好文 时间:
2017-09-29 17:48:11
阅读次数:
238
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For example, giv ...
分类:
其他好文 时间:
2017-09-29 01:48:12
阅读次数:
190
Sum Zero Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) Problem Description There are 5 Integer Arrays and each of ...
分类:
其他好文 时间:
2017-09-29 00:33:44
阅读次数:
168
首先要赞一下kindeditor,一个十分强大的国产开源web-editor组件。 kindeditor4.1.x版本已支持图片批量上传,不过传统的选文件上传的方式依然效率低下。 很多时候,编辑人员可能需要将一个文档中图片上传到网上,那么,按照传统的上传方法,他必须先将图片另存为到本机,再用编辑器的 ...
分类:
Web程序 时间:
2017-09-28 19:14:33
阅读次数:
347