07 2012 档案
make
摘要://makefile1 myapp: main.o 2.o 3.o gcc -o myapp main.o 2.o 3.o main.o: main.c a.h gcc -c main.c 2.o: 2.c a.h b.h gcc -c 2.c 3.o: 3.c b.h c.h gcc -c 3.c // make -...
阅读全文
String
摘要:#include <string>string: :size_type //An unsigned integer (data) type string: :npos //The maximum value of the (data) type string:: size_type , //a number such as 4294967295 on many machinesstring strVar;strVar.length()strVar.size()strVar.find(strExp)strVar.find(strExp, pos)strVar.substr(expr1
阅读全文
Cpp 基本(一)
摘要:cin.ignore(intExp, chExp);Here intExp is an integer expression yielding an integer value, and chExp is a char expression yielding achar value. In fact, the value of the expression intExp specifies the maximum number of characters to be ignored in a line.cin.ignore(100, ' \n');cin.ignore(75,
阅读全文
Ch12 Resampling statistics and bootstrapping
摘要:Ch12 Resampling statistics and bootstrappingPermutation testsPermutation tests, also called randomization or re-randomization tests.Ten subjects have been randomlyassigned to one of two treatment conditions(A or B) and an outcome variable (score) has been recorded.Is there enough evidence to conclud
阅读全文
Creating publication-quality output
摘要:Creating publication-quality outputThe Sweave package allows you to embed R code and output in LaTeX documents, in order to produce high-end typeset reports in PDF, PostScript, and DVI formats. Sweave is an elegant, precise, and highly flexible system,but it requires the author to be conversant with
阅读全文
Matrix Algebra in R
摘要:Matrix Algebra in RA and B are matrices, x and b are vectors, and k is a scalar.The matlab package contains wrapper functions and variables used to replicate MATLAB function calls as closely as possible.http://mathesaurus.sourceforge.net/octave-r.htmlTheMatrix package contains functions that extend
阅读全文
Working with large datasets
摘要:Working with large datasetsThere are three issues to consider when working with large datasets:(a) efficient programming to speed execution, (b) storing data externally to limit memory issues,(c) using specialized statistical routines designed to efficiently analyze massive amounts of data.Efficient
阅读全文
Updating an R installation
摘要:Updating an R installationupdate.packages() function can be used to download and install the most recent version of a contributed package.http://cran.r-project.org/binThe installed.packages() function is used to save a list of packages to a location outside of the R director y tree, and then the lis
阅读全文
浙公网安备 33010602011771号