simple model fitting using R
来源:互联网 发布:识别图片的软件 编辑:程序博客网 时间:2024/06/09 19:23
x=c(0,1,2,3,4)y=c(1,2,3,4,5)r=nls(y ~ 1/(1+4*x*p),start=list(p=0))summary(r)xt=seq(1,1000,0.1)yt=1/(1+4*xt*0.02860)postscript(file="/path/to/directory/test.ps",width=7,height=7)or svg(file="/path/to/directory/test.svg",width=7,height=7)plot(xt,yt,'l',xlab="xlabel",ylab="ylabel")points(x,y)dev.off()
读tab分隔的txt:
a=read.table(file="x.txt",header=FALSE);
c=a[2:255,2]; 读第2列, 从第2行到第255行
s=sum(as.numeric(c))
d=c/s;
x=a[2:255,1]; 读第1列, 从第2行到第255行
y=d*100;
postscript(file="x.ps",width=7,height=7)
xt=x[4:100]
yt=y[4:100]
plot(xt,yt,'l',xlab="Depth",ylab="Percent")
points(xt,yt)
dev.off()
- simple model fitting using R
- Template-Based 3D Model Fitting Using Dual-Domain Relaxation
- Fitting ellipses using RANSAC
- R fitting R语言数据拟合总结
- Be Careful with Using Model Design in R
- (模型选取)Fitting a Model to Data
- 使用PCA拟合平面(Plane Fitting using PCA)
- 1- Simple Linear Model
- Model confusion : Domain Model & E-R Model
- A Drafted Simple Consult Model
- Simple Packet Sniffer using Java
- Curve Fitting
- over-fitting
- Exponential Fitting
- RANSAC Fitting
- 凸优化:ADMM(Alternating Direction Method of Multipliers)交替方向乘子算法系列之八: Distributed Model Fitting
- 文献笔记:《Fitting a 3D Morphable Model to Edges: A Comparison Between Hard and Soft Correspondences》读后感~
- Using R — .Call(“hello”)
- rails插件
- android2.3.4 fsl imx51编译遇到的问题总结
- 在Centos上安装RabbitMQ流程
- J2EE 一次清除所有的session
- Android UI之ProgressBar(进度条)
- simple model fitting using R
- 【吼吼睡cocos2d学习笔记】第六章 - cocos2d中的层以及层之间的传值
- oracle 单表流复制 stream
- MFC Activex Control
- 常用uri
- ubuntu环境下编译内核详解
- ASP.NET学习路线图
- 《深度探索C++对象模型》第五章Semantics of Construction,Destruction, and Copy_学习笔记
- [人事管理系统] JTable的列宽与内容的自适应