1 ###################R语言中apply类型问题 2
data<-data.frame(x=c(1,2,3,4),y=c(2,3,4,5),z=c(5,6,7,8)) 3
apply(data,2,mean)##apply针对数据框 4 lapply(data,mean)##l....
分类:
移动开发 时间:
2014-05-23 09:42:54
阅读次数:
328
3.0以前,android支持两种动画模式,tween animation,frame
animation,在android3.0中又引入了一个新的动画系统:property animation,这三种动画模式在SDK中被称为property
animation,view animation,dra...
分类:
移动开发 时间:
2014-05-23 09:14:24
阅读次数:
310
老早写的,现在转移阵地在java中有两种方式调用文件对话框(1)一种是AWT中的FileDialog类,通过FileDialog类创建一个对象,该对象即是所需要的对话框,例如,FileDialog
dialog=new FileDialog(new Frame(),"选择存放位置",FileDial...
分类:
编程语言 时间:
2014-05-23 08:43:18
阅读次数:
407
代码如下:import cv2
videoCapture = cv2.VideoCapture('car.avi')
fps = videoCapture.get(cv2.cv.CV_CAP_PROP_FPS)
size = (int(videoCapture.get(cv2.cv.CV_CAP_PROP_FRAME_WIDTH)),int(videoCapture.get(cv2.cv.CV_C...
分类:
编程语言 时间:
2014-05-22 11:38:22
阅读次数:
338
可能是以前记错了,总认为在ios6上使用了UINavigationController或者TabBarController会因为多了bar而影响子controller的view的frame大小。今天在xcode5.1上验证,无论ios6或者7,使用容器controller,产生了的bar都不会对子c...
分类:
移动开发 时间:
2014-05-22 04:28:02
阅读次数:
339
p_value0) 1-pelse
if(p0){z<-(xb-mu)/(sigma/sqrt(n))p<-p_value(pnorm,z,side=side)data.frame(mean=xb,df=n,Z=z,p_value=p)}else{t<-(xb-mu)/(sd(x)/sqrt...
分类:
其他好文 时间:
2014-05-22 03:25:16
阅读次数:
259
ffmpeg 源代码简单分析 : av_read_frame()
http://blog.csdn.net/leixiaohua1020/article/details/12678577ffmpeg中的av_read_frame()的作用是读取码流中的音频若干帧或者视频一帧。例如,解码视频的时候,....
分类:
其他好文 时间:
2014-05-21 22:21:52
阅读次数:
541
BSSID的值是路由器无线MAC地址,具体相信IEEE 802.11规范。
MAC地址在路由器上存储位置一半为Factory/factory分区的第四个字节(从0开始),小端字节序。
The BSSID included in the MAC Header transmitter
address field of a Beacon frame when the multiple BSSID...
分类:
其他好文 时间:
2014-05-21 09:59:36
阅读次数:
326
- (IBAction)button:(UIButton *)sender { if
(sender.tag == 0) { //计算view的frame属性 NSString *frame =
NSStringFromCGRect(_view1.frame); NSString *outfr...
分类:
其他好文 时间:
2014-05-19 19:32:19
阅读次数:
236
#ifndef __APP_WEBSOCKET_FRAME_H__
#define __APP_WEBSOCKET_FRAME_H__
#include "memory.hpp"
class buffer;
struct websocket_frame
{
websocket_frame();
~websocket_frame();
static const unsigned int f...
分类:
Web程序 时间:
2014-05-18 09:37:29
阅读次数:
332