- 博客(27)
- 资源 (1)
- 收藏
- 关注
原创 Ubuntu 16.04 搭建Hadoop环境(to be continued)
reference: 1. Ubuntu上搭建Hadoop环境(单机模式+伪分布模式) 2. Ubuntu11.10下安装Hadoop1.0.0(单机伪分布式)
2016-07-29 10:56:15
560
原创 《Javascript高级程序设计》读书笔记之——Prototype
0. 写在前面 创建对象: var person = new Object(); person.name = "Nicholas"; person.age = 24; person.job = "Engineer"; person.sayName = function(){ alert(this.name); }; 如果需要通过接口创建大量对象,那么会产生大量重复代码,工厂模式
2016-07-10 00:53:23
389
原创 《Javascript高级程序设计》读书笔记之——基本包装类型
基本包装类型: 基本类型与引用类型之间不同,引用类型可以随时调用自己的方法,而基本类型重写了方法。 Boolean类型: 尽量不要使用该类型 var falseObj = new Boolean(false); var result = falseObj && true; alert(result); //true var falseValue = false; var res
2016-07-08 18:14:55
401
原创 CSS child selector
1. direct children ul > li {font-size: 14px;} 2. first or last child th:first-child { border-top-left-radius: 13px; } th:last-child { border-top-right-radius: 13px; } tr:last-child td:first-c
2016-06-11 15:36:19
794
转载 The difference between JS and jQuery
See https://blog.udemy.com/jquery-vs-javascript/
2016-01-06 05:59:31
471
原创 jQuery Getting Started
"jQuery is a fast, small, and feature-rich JavaScript library." 1.Google CDN 2.jQuery Syntax $(document).ready(function(){ $("p").click(function(){ $(this).hide(); }); }); 3.
2016-01-06 03:04:44
506
原创 Common JS Function
var myFunction = function (a, b) {return a * b} document.getElementById("demo").innerHTML = myFunction(4, 3); Reference: http://www.w3schools.com/js/js_function_definition.asp
2016-01-05 19:18:30
416
转载 Common JS String Methods
Method Description charAt() Returns the character at the specified index (position) charCodeAt() Returns the Unicode of the character at the specified index concat() Joins two or mo
2015-12-15 03:27:37
458
转载 Difference between <b> and <strong>
Think of three different situations: web browsersblind peoplemobile phones "Bold" is a style - when you say "bold a word", people basically know that it means to add more, let's say "ink" around
2015-12-08 03:55:46
554
转载 Numerical Measures in R
basic culculation(mean,median,quantile, variance, standard deviation, covariance, correlation coefficient, central moment, skewness, kurtosis )
2015-12-02 23:40:52
525
转载 Basic knowledge of HTML
1. Basic knowledge of HTML Every code of web includes a solid structure. Head, body are include in a html. In the content, one could add up title, headings and paragraphs.
2015-12-02 21:32:24
413
转载 Clear Screen and remove objects in RStudio
Clear screen: Ctrl + L Remove an object: rm(foo) Remove all objects: rm(list = ls()) Quote from: http://blog.sciencenet.cn/blog-611051-552932.html
2015-12-02 21:28:55
517
原创 Nearest Neighbour in R
Package in use: "spatstat" Data: > title <- c("Name", "X", "Y", "Surface", "Date", "Temprature") > GWT <- read.csv2("E:\\Slides\\Geostatistics & Geomarketing(Nein)\\data\\Groundwater_Temperature.cs
2015-11-19 18:35:12
578
原创 Stem-and-Leaf Plot in R
Data set: faithful, 272*2, Waiting time between eruptions and the duration of the eruption for the Old Faithful geyser. > duration <- faithful$eruptions > duration [1] 3.600 1.800 3.333 2.283 4.
2015-11-04 23:25:43
2189
原创 Frequency Distribution
Data set: faithful, 272*2, Waiting time between eruptions and the duration of the eruption for the Old Faithful geyser. > head(faithful) eruptions waiting 1 3.600 79 2 1.800 54 3
2015-11-03 16:12:42
1340
原创 tapply() Function in R
tapply() apply different functions on factor sliced rows. Firstly, loading a data set. > library(MASS) > head(painters) Composition Drawing Colour Expression School Da Udine
2015-11-03 04:23:27
700
原创 R Global Option Settings
options(...) digits -- controls the number of digits when printing numeric values. > school.relfreq school A B C D E F G 0.18518519 0.
2015-10-31 04:56:55
797
原创 R table()&cbind() Fuction
table() counts the different factor levels > library(MASS) > school <- painters$School > painters Composition Drawing Colour Expression School Da Udine 10 8
2015-10-31 03:38:08
523
原创 Data Slice in R
1. Data Frame A data frame is a combination of different vectors. > x = c(1, 2, 3) > y = c("a", "b", "c") > z = c(TRUE, FALSE, TRUE) > co = data.frame(x, y, z) 2. Column Slice Numeric Indexing >
2015-10-29 16:15:22
747
原创 File Input and Output with R
data.frame function is similar like structure in C language, which can contain different types of data as a union, helping us to manage data more easily. 1. Reading a column from a data frame.
2015-10-27 19:43:34
447
原创 Drawing function in R
R语言中有自带的几个绘图函数: contour() to create a contour plot persp() could draw a perspective plot of a surface image() generate a heat map Then I will show some demo here. "volcano" is a data set 87*
2015-10-27 04:25:03
498
原创 R语言设置当前工作文件夹
getwd() 这个函数用于显示当前工作空间的路径。 setwd() 用于重新设置当前工作文件夹。 list.files() 列出当前文件夹的子目录。 list.files(path = " . ") 列出指定路径的子目录。 source("***.R") 加载R文件 > getwd() [1] "C:/Users/Cheryl/Documents" > list.
2015-10-26 16:41:36
4418
原创 R语言字母向量
The following constants are available: LETTERS: the 26 upper-case letters of the Roman alphabet; letters: the 26 lower-case letters of the Roman alphabet; month.abb: the three-letter abbrev
2015-10-25 06:27:32
8487
1
原创 R语言产生随机数
R语言中有4个产生随机数的函数: dunif: 指定随机数密度 punif: 指定随机数的分布类型 qunif: 指定quantile function runif:产生随机分布的散点 如果需要指定随机数的类型,可用以下几个函数: round() ceiling() floor() as.integer()
2015-10-25 05:16:04
10178
原创 R语言的数据类型和数据结构
1. 把R语言操作界面修改为英文 在中文环境中安装R语言编译器,安装语言选择为英文,但是安装好之后还是中文界面。手动修改语言的方法为:右键点击桌面上R的快捷方式,选择属性,目标栏,在“....Rgui.exe”后面添加 language=English, 界面即可修改为英文。 2.R语言的基本数据类型 numeric: complex logical character
2015-10-24 17:47:37
3062
图书管理系统软件需求分析
2012-05-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅