- 博客(9)
- 收藏
- 关注
原创 Python 3 -Functions
# computes the area of a triangledef triangle_area(base, height): # header - ends in colon,以冒号结尾 area = (1.0 / 2) * base * height # body - all of body is indented,body必须要退格 return area
2015-05-31 04:12:03 302
原创 Bash 14-16
Lesson 14: Sending Email with sendEmail sudo apt-get install sendEmail libio-socket-ssl-perl libnet-ssleay-perl #安装一些工具包 sendEmail -f jthelinuxguy@gmail.com -t jthelinuxguy@gmail.com -u This is ju
2015-05-29 02:19:02 332
原创 Python-2 Variables
http://www.codeskulptor.org/#examples-variables.py# variables - placeholders for important values# used to avoid recomputing values and to# give values names that help reader understand code
2015-05-26 23:46:58 270
原创 Python-1 Arithmetic expressions
print 3,-1,3.14159,-2.8print type(3), type(3.14159) #print 数字的type,如int, float----------------------------------------------------------------------------------------------------------------
2015-05-24 10:58:37 510
原创 bash 1-5
Lesson 1 1. nano file (nano 是一个编辑器): ^X 退出 2. cat file (显示file里面的内容) 3. which firefox (找到firefox安装的位置)Lesson 2: Hello world nano HelloWorld #!/bin/bash(每个bash文件都有,暂时没讲) echo “Hello W
2015-05-21 04:40:05 397
原创 MRI 数据(HCP数据及其他)
HCP预处理pipeline:http://www.ncbi.nlm.nih.gov/pubmed/23668970文件夹结构以及每个文件是什么:http://www.humanconnectome.org/documentation/S500/HCP_S500+MEG2_Release_Reference_Manual.pdf dtseries.nii是皮层数据,大小大概只有64k两个工具箱:
2015-05-09 01:16:16 8735 4
转载 矩阵分解的Jungle
原文见http://www.cvchina.info/2011/09/05/matrix-factorization-jungle/Matrix Decompositions has a long history and generally centers around a set of known factorizations such as LU, QR, SVD and eigend
2015-05-07 03:09:45 394
原创 CVX coding
CVX 是常用的解convex optimization problem的toolbox。一般格式: cvx_begin variables x(n,1) y(m,1); minimize(填obejective function); y>=0; cvx_end;常见err: err1:注意在写多个variable的时候要写“variables“,而不是“vari
2015-05-04 03:05:27 2023 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人