아무래도 엑셀을 사용하면 데이터도 효율적으로 관리할 수 있고, 그래프를 뽑기도 쉽다. 더구나 csv(comma separated value) 형식을 활용하면 실험 결과를 바로바로 그래프로 만들 수 있다. 그런데 문제는 엑셀에서 만든 그래프를 다른 문서에 옮기려고 할때 문제가 발생한다. 일단 엑셀의 그래프는 다음과 같이 나온다. 이렇게 이쁘게 나오는 그래프도 그냥 ctrl-c / ctrl-v로 옮기면 ppt에서는 다음과 같이 나온다. 아마 이런경험을 해본 사람은 알겠지만 이렇게 되면 그래프 크기를 수정할때마다 x,y축이 자유자재로 바뀐다. 이런게 싫은 사람은 아예 그래프를 그림파일로 만들면 좋을 수도 있다. 방법은 의외로 간단하다. 다만 복사가 앞에서 언급한 텍스트 복사가 아닌 이미지 복사 기능을 활용해야..
C로 쓴자료구조론 연습문제 2.2.6
C로 쓴 자료구조론 연습문제 2.2.5
edX에서 진행중인 수업중에 하나인 Cyber Physics System 과제다. 주제는 obstacle Avoidance.사실 우리 주변에도 로봇 청소기 쓰는 사람이 많다. 그런데 막상 로봇이 장애물을 회피하려면 어떤 구조를 취해야 할까를 고민해보니까 생각보다 간단하지 않다.내가 간단하게 구현한건 일일이 로봇청소기가 벽에 부딛쳐본후 그 거리가 일정 거리 일상일때 그만큼 다시 사선으로 나아가는 방식으로 취해있다. 이게 가능한건 로봇청소기에 bump sensor, 즉, 충돌 감지 센서가 달려있기 때문에 가장 이상적으로 생각했던 로봇이 벽면을 쭉 훑으면서 목적지로 나아가는 건 해보고 싶었는데 할게 너무 많던지라;;아무튼 간단하게 cybersim이라는 Labview기반의 simulator에서 테스트했는데 생각..
In CS50 class of edX,두번째 과제였던 vigenere 방식인데,이전 caesar 방식은 단순히 integer 형식의 key값을 준것과 다르게 vigenere 방식은 keyword를 기반으로 encode한다.즉 keyword를 구성하는 alphabet이 caesar에서 말한 shift value가 되는 것이다.역시 대충짜서 코드가 지저분하다. 일반 C에서 쓸 사람은 중간에 GetString()부분만 수정해주면 된다.#include #include #include #include #include #define LOWER 97 #define UPPER 65 int main(int argc, char* argv[]) { if(argc != 2){ printf("you must enter sing..
CS50 강의 과제중에 cipher에 대한 내용이 나온다.크게 언급되는게 Caesar cipher와 Vigenere cipher 방식인데그중 Caesar cipher 에 대한 구현이다. 내용도 엄청 간단하다. 그냥 k값을 입력으로 주면 그 값만큼 shift 한 결과에 대한 alphabet의 mapping value가 다시 들어가는 것이다. 즉 ASCII 코드 이상으로 넘어가는 값에 대한 처리만 해주면 되는 방식이다. Vigenere 방식은 쪼금 복잡하지만.. 아무튼 modulo 연산만 잘 쓰면 되는거 같다.대충 짜느라 코드가 지저분하다. #include #include #include #include #include #define LOWER 97 #define UPPER 65 int main(int ar..
I wrote several articles about this class. this class is maybe the first class using real embedded device. people taking this class learn about the basic principles of designing device such as GPIO, UART, Interrupt and so on. this class ends up a few days ago so I got a COA. I feel it`s very fun. Check this link if you are interested in this topic.
ESaaS 3번째 과제였다. standardError로 상속해서 따로 exception을 처리하는 부분과 여러개의 입력이 들어왔을 때 각 case에 대한 recursive call을 고려했어야 했다. #!/usr/bin/env ruby class RockPaperScissors class NoSuchStrategyError < StandardError ; end def self.winner(player1, player2) if not ["P","R","S"].include?(player1[1]) or not ["P","R","S"].include?(player2[1]) raise NoSuchStrategyError, "Strategy must be one of R,P,S" end if player1[1]..
edX ESaaS 숙제 두번째는 class를 만드는 문제였는데 getter와 Setter, 그리고 inherited class를 생성할 수 있는지를 물어보는 문제가 제시되었다. 아마 기본문법을 익힌 사람이라면 금방 했을듯. #!/usr/bin/env ruby class Dessert def initialize(name, calories) @name = name @calories = calories end def name @name end def calories @calories end def name=(new_name) if new_name.empty? raise ArgumentError, 'new_name should be string' else @name=new_name end end def calo..
edX ESaaS 수업 첫번째 과제중 하나. word에 대한 palindrome과 단어 반복횟수 체크, 그리고 들어있는 단어에 대한 anagram까지 뽑는게 주제였다.다른건 쉬웠는데 마지막에 word마다 anagram을 뽑아서 어떻게 처리해야 될지가 약간 고민을 하게 했다.#!/usr/bin/env rubyclass String def palindrome? original = self.delete("^a-zA-Z") if original.reverse.downcase == original.downcase return true else return false end end def count_words original = self.delete("^a-zA-Z ").downcase dic = original...
Coursera Algorithm 강의 첫번째 과제. 단순하게 mergesort를 이용해서 순서를 정할때 거꾸로 정리되는 경우의 수를 체크하는 문제였다.mergesort를 쓰게 되면 기존에 O(n^2)의 complexity가 O(nlogn)으로 떨어진다. def readFile(filename, l): with open(filename, "r") as f: for line in f: l.append(int(line)) if f.closed == False: f.close() def sortAndCount(A): mid = len(A) // 2 if len(A) == 1: return A, 0 B, x = sortAndCount(A[:mid]) C, y = sortAndCount(A[mid:]) D, z ..
This is my 14th certificate through online course ( coursera, edX, openEdX etc..) MOOC offers lots of opportunities to someone who are interested in learning. Someone told me "Learn & Adapt or Die" I think it is correct. because the world changes so fast, and we need to adapt the world to follow the trends or stream through the learning. Anyway, this class talks about the concepts of programming..
- Total
- Today
- Yesterday
- Expression Blend 4
- processing
- reward
- 한빛미디어
- Kinect SDK
- 파이썬
- Pipeline
- Kinect for windows
- arduino
- bias
- 딥러닝
- Windows Phone 7
- Kinect
- Python
- Gan
- PowerPoint
- 강화학습
- ColorStream
- Offline RL
- End-To-End
- dynamic programming
- Off-policy
- Distribution
- DepthStream
- SketchFlow
- Policy Gradient
- Variance
- windows 8
- TensorFlow Lite
- RL
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |