Definitions Axioms Theorems

카테고리 없음 2013. 7. 3. 09:14

Definitions Axioms Theorems



Definitions establish the logic of probability theory


axioms are facts that we accept without proof


Theorems are consequences that follow logically from definitions and axioms


Example.


Definition (정의)

A probability measure P[*] is a function that maps events in the sample space to real numbers 


Axiom (공리)

Axiom 1.  For any event A, P[A] >= 0
Axiom 2.  P[S] = 1
Axiom 3.  For any countable collection A1, A2, ... of mutually exclusive events


Theorem (정리)

De Morgan's law relates all three basic operations :




Reference
- Probability and stochastic processes by Yates and Goodman



설정

트랙백

댓글

Raspberry network setting (고정ip)

Raspberry PI 2013. 6. 28. 03:11

Raspberry 유선 Network 설정


라즈베리 유선 Network 설정을 하기 위해서 우선 LXTerminal로 들어간다.

다음과 같이 명령어를 치게 되면, nano text editor를 이용하여 interfaces파일을 수정할 수 있게 된다. 
(interfaces 파일은 root 사용자만 편집이 가능하다. 그리고 명령어 앞에 붙는 sudo는 window의 관리자권한으로 실행 과 같은 의미라고 생각하면 될거 같다.)

sudo nano /etc/network/interfaces

editor내에서 interfaces내용을 다음과 같이 수정하도록 한다.

auto eth0
iface eth0 inet static    
    address [ip 주소 입력]
    netmask [네트워크 서브넷 마스크 입력]
    gateway [게이트 웨이 입력]

둘째 줄에 static은 고정아이피를 사용할 때 사용되고, 자동으로 잡아주는 유동아이피 사용시 static 대신에 dhcp(Dynamic Host Configuration Protocol)를 써준다. 이 때 당연히 address, netmask, gateway를 써줄 필요는 없다.


설정을 저장하기 위해 Ctrl + o를 누르고, 종료 단축키 Ctrl + x로 editor를 빠져나간다.

새로 저장된 네트워크 세팅을 사용하기 위하여 다음과 같이 입력한다.

sudo /etc/init.d/networking restart

이제 Raspberry Pi가 어떤 DNS 서버를 사용할지를 정해주어야 한다.

sudo nano /etc/resolv.conf

*DNS(Domain Name Service) 서버는 우리가 흔히 쓰는 www.naver.com과 같이 사람들이 직관적으로 알 수 있는 문자로된 주소(도메인주소)를 컴퓨터가 알아먹을 수 있는 ip주소로 변경해 줄 수 있도록 서비스를 제공하는 서버라고 할 수 있다. 


nano text editor에서 원하는 DNS서버의 주소를 다음의 예시와 같이 써주도록 한다.

nameserver xxx.xxx.xxx.xxx 
nameserver xxx.xxx.xxx.xxx

ctrl + o , ctrl + x로 editor를 나간뒤, 다시 새로운 네트워크 세팅을 적용한다.

마지막으로 Ping test를 통해 제대로 packet이 전송이 되고 있는지 확인한다.

ping -c 1 www.naver.com




'Raspberry PI' 카테고리의 다른 글

Raspbian 설치 및 설정  (0) 2013.08.08
Raspberry Pi Webcam server  (0) 2013.07.28

설정

트랙백

댓글