新手求助:如何查看R中qnorm函数的源代码

苹果/安卓/wp
积分 46, 距离下一级还需 39 积分
道具: 彩虹炫, 涂鸦板, 雷达卡, 热点灯, 金钱卡, 显身卡下一级可获得
权限: 自定义头衔
购买后可立即获得
权限: 隐身
道具: 金钱卡, 彩虹炫, 雷达卡, 热点灯, 涂鸦板
&如何查看这个对象是数组,矩阵,因子,数据框,时间序列?怎么看?使用mode()只能看数据类型是numeric, character, bool, complex.
载入中......
比如说A是一个向量.A=c(1,1,1,1,1)class(A):[1] "numeric"不是我预期的,应该返回vector啊.有没有方法可以判别A是矩阵还是向量,或者说是因子,数据框等等.
请参考R for beginners 第10页
vector&&和 numeric 并没有严格划分
tchenyunt 发表于
比如说A是一个向量.A=c(1,1,1,1,1)class(A):[1] &numeric&不是我预期的,应该返回vector啊.有没有方法可以判 ...这个没法自动判断
最好的医生是自己,最好的药物是时间……
The str (structure) command informs us of the status of each variable in a data frame
str(data) #int,整数;num,分数;Factor,因子。
参见&A beginner's guide to R& P59.
无限扩大经管职场人脉圈!每天抽选10位免费名额,现在就扫& 论坛VIP& 贵宾会员& 可免费加入
加入我们,立即就学扫码下载「就学」app& Join us!& JoinLearn&
&nbsp&nbsp|
&nbsp&nbsp|
&nbsp&nbsp|
&nbsp&nbsp|
&nbsp&nbsp|
&nbsp&nbsp|
如有投资本站或合作意向,请联系(010-);
邮箱:service@pinggu.org
投诉或不良信息处理:(010-)
京ICP证090565号
京公网安备号
论坛法律顾问:王进律师苹果/安卓/wp
积分 339, 距离下一级还需 111 积分
权限: 自定义头衔, 签名中使用图片
道具: 彩虹炫, 涂鸦板, 雷达卡, 热点灯, 金钱卡, 显身卡, 匿名卡下一级可获得
道具: 抢沙发
购买后可立即获得
权限: 隐身
道具: 金钱卡, 彩虹炫, 雷达卡, 热点灯, 涂鸦板
苦逼签到天数: 20 天连续签到: 1 天[LV.4]偶尔看看III
请问如何查看qnorm函数的源代码?谢谢!
载入中......
源代码是用C写的
ntsean 发表于
源代码是用C写的是qnorm()这个函数是的源代码是C写的?
ntsean 发表于
源代码是用C写的大哥,你能提供一个自己编写的函数吗,这个函数是用于已知正态分布的Z值,求p值的函数,就是实现qnorm的功能。谢谢!
无限扩大经管职场人脉圈!每天抽选10位免费名额,现在就扫& 论坛VIP& 贵宾会员& 可免费加入
加入我们,立即就学扫码下载「就学」app& Join us!& JoinLearn&
&nbsp&nbsp|
&nbsp&nbsp|
&nbsp&nbsp|
&nbsp&nbsp|
&nbsp&nbsp|
&nbsp&nbsp|
如有投资本站或合作意向,请联系(010-);
邮箱:service@pinggu.org
投诉或不良信息处理:(010-)
京ICP证090565号
京公网安备号
论坛法律顾问:王进律师查看: 10418|回复: 13|关注: 0
求助:网上找到的SIFT特征提取代码,怎么使用?
<h1 style="color:# 麦片财富积分
新手, 积分 5, 距离下一级还需 45 积分
在论坛里找到的SIFT代码,但不知道怎么使用,里面的M文件比较多,由于上传不了 代码;请求高手帮助/Q:
<h1 style="color:# 麦片财富积分
% [image, descriptors, locs] = sift(imageFile)
% This function reads an image and returns its SIFT keypoints.
%& &Input parameters:
%& &&&imageFile: the file name for the image.
%& &Returned:
%& &&&image: the image array in double format
%& &&&descriptors: a K-by-128 matrix, where each row gives an invariant
%& && && &descriptor for one of the K keypoints.&&The descriptor is a vector
%& && && &of 128 values normalized to unit length.
%& &&&locs: K-by-4 matrix, in which each row has the 4 values for a
%& && && &keypoint location (row, column, scale, orientation).&&The
%& && && &orientation is in the range [-PI, PI] radians.
% Credits: Thanks for initial version of this program to D. Alvaro and
%& && && & J.J. Guerrero, Universidad de Zaragoza (modified by D. Lowe)
function [image, descriptors, locs] = sift(imageFile)
% Load image
image = imread(imageFile);
% If you have the Image Processing Toolbox, you can uncomment the following
%& &lines to allow input of color images, which will be converted to grayscale.
% if isrgb(image)
%& & image = rgb2gray(image);
[rows, cols] = size(image);
% Convert into PGM imagefile, readable by &keypoints& executable
f = fopen('tmp.pgm', 'w');
if f == -1
& & error('Could not create file tmp.pgm.');
fprintf(f, 'P5\n%d\n%d\n255\n', cols, rows);
fwrite(f, image', 'uint8');
fclose(f);
% Call keypoints executable
& & command = '!./sift ';
& & command = '!siftWin32 ';
command = [command ' &tmp.pgm &tmp.key'];
eval(command);
% Open tmp.key and check its header
g = fopen('tmp.key', 'r');
if g == -1
& & error('Could not open file tmp.key.');
[header, count] = fscanf(g, '%d %d', [1 2]);
if count ~= 2
& & error('Invalid keypoint file beginning.');
num = header(1);
len = header(2);
if len ~= 128
& & error('Keypoint descriptor length invalid (should be 128).');
% Creates the two output matrices (use known size for efficiency)
locs = double(zeros(num, 4));
descriptors = double(zeros(num, 128));
% Parse tmp.key
for i = 1:num
& & [vector, count] = fscanf(g, '%f %f %f %f', [1 4]); %row col scale ori
& & if count ~= 4
& && &&&error('Invalid keypoint file format');
& & locs(i, :) = vector(1, :);
& & [descrip, count] = fscanf(g, '%d', [1 len]);
& & if (count ~= 128)
& && &&&error('Invalid keypoint file value.');
& & % Normalize each input vector to unit length
& & descrip = descrip / sqrt(sum(descrip.^2));
& & descriptors(i, :) = descrip(1, :);
fclose(g);
这个是sift代码
<h1 style="color:# 麦片财富积分
我毕业论文就是搞这个!什么都不懂
<h1 style="color:# 麦片财富积分
我也想知道啊啊啊啊啊~~纠结中~~~~
<h1 style="color:# 麦片财富积分
最主要的siftwin32.exe 找不到源代码
<h1 style="color:# 麦片财富积分
楼主,问题解决了吗?:'siftWin32' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
<h1 style="color:# 麦片财富积分
将siftwin32.exe放到matlab下的bin文件即可
<h1 style="color:# 麦片财富积分
将siftwin32.exe放到matlab下的bin文件即可
放bin下就可以看到源程序代码?怎么我的还是乱码啊?
<h1 style="color:# 麦片财富积分
放bin下就可以看到源程序代码?怎么我的还是乱码啊?
把siftwin32.exe放到MATLAB的工作目录下就行
<h1 style="color:# 麦片财富积分
把siftwin32.exe放到MATLAB的工作目录下就行
你好,我想问我呢我有siftwin32,但是我所有的平台都是64位的,每次调用sift时候都出错,想问问是不是我需要的是sift64呢?有没有这个东西,有的话去哪里找~我对matlap是菜鸟,求指教
站长推荐 /2
Powered by

我要回帖

更多关于 r qnorm 的文章

 

随机推荐