In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data. ...
分类:
其他好文 时间:
2017-04-30 14:02:02
阅读次数:
203
Android在布局文件里为View提供了onClick属性。用法例如以下: <TextView android:id="@+id/user" android:layout_width="@dimen/px_171" android:layout_height="fill_parent" andro ...
分类:
移动开发 时间:
2017-04-26 20:25:26
阅读次数:
171
MediaPlayer除了能够对音频播放之外,也能够对视频进行播放,可是假设要播放视频仅仅依靠MediaPlayer还是不够的。还须要编写一个能够用于视频显示的空间,而这块显示空间要求能够高速的进行GUI的更新,并且能够在渲染代码时进行无堵塞的的对GUI进行渲染,而假设要完毕此种功能,则必须依靠an ...
分类:
移动开发 时间:
2017-04-15 12:04:43
阅读次数:
203
HTML代码在使用IFRAME或者其他HTML元素时,你需要使用一个元素(如DIV)来包装他们: CSS 代码要让IFRAME支持滚动,需要一个常用的CSS属性和一个很少人知道的CSS属性(property): -webkit-overflow-scrolling: touch; 属性值就是专为浏览 ...
分类:
移动开发 时间:
2017-04-13 09:10:02
阅读次数:
333
本文由Blankj投稿。 Blankjd的博客地址: http://www.jianshu.com/u/46702d5c6978 为了利于项目维护以及规范开发,促进成员之间Code Review的效率,故提出以下开发规范,如有更好建议,欢迎到GitHub提issue。 https://github. ...
分类:
移动开发 时间:
2017-04-11 11:24:46
阅读次数:
471
The criterion to satisfy for providing the new shape is that 'The new shape should be compatible with the original shape' numpy allow us to give one o ...
分类:
其他好文 时间:
2017-04-08 22:36:16
阅读次数:
184
图 二、实现思路: 1. 正上方的提示区域,用一个类(LockIndicator.java)来实现,自定义view来绘制9个提示图标; 2. 手势密码绘制区域,用一个类(GestureContentView.java)来实现,它继承自ViewGroup里面, 添加9个ImageView来表示图标, ...
分类:
移动开发 时间:
2017-04-08 10:12:59
阅读次数:
288
特征选择和降维存在着联系,但是却不能把它们混为一谈。 先说说联系,当数据的维度很高时,经常伴随着数据样本稀疏、距离计算困难等问题,即所谓的“维数灾难”(curse of dimensionality)。而缓解维数灾难有两个重要的途径,也就是降维和特征选择,可以这么认为,特征选择和降维的目标都是降低数 ...
分类:
其他好文 时间:
2017-04-05 16:26:10
阅读次数:
289
调用系统拍照功能: 调用系统相册功能: 1 Intent getAlbum = new Intent(Intent.ACTION_GET_CONTENT); 2 getAlbum.setType("image/*"); 3 startActivityForResult(getAlbum, PHOTO ...
分类:
其他好文 时间:
2017-03-28 22:05:49
阅读次数:
215
numpy.nonzero(a) Return the indices of the elements that are non-zero. Returns a tuple of arrays, one for each dimension of a, containing the indices ...
分类:
编程语言 时间:
2017-03-26 11:49:44
阅读次数:
178