2. Author: Seungwan Ryu, Jonggu Lee, and H. Jin Kim
3. Abstract: TBU.
4. Video clip: TBU.
5. URL: TBU.
unsigned int bd_rate = 9600; void setup() { // put your setup code here, to run once: Serial.begin(bd_rate); Serial.println("Serial START"); } void loop() { // put your main code here, to run repeatedly: char X = 97; int Y = 97; Serial.print("X: "); Serial.print(X);Serial.print("\t"); Serial.write(X); Serial.println(); Serial.print("Y: "); Serial.print(Y); Serial.print("\t"); Serial.write(Y); Serial.println(); delay(1000); }
<Snap shot of Arduino serial moniter>
- Example of normal distribution implemented in C/C++language.
- C/C++ 로 구현한 정규분포 예제
//////////////////////////////////////////////////////////////////
#include <random> int main(void){ default_random_engine generator; normal_distribution<double> distribution(0,1); // mean: 0, standard deviation: 1 while(1){ double number = distribution(generator); cout<<"#:"<<number<<endl; } return 0; }
//////////////////////////////////////////////////////////////////
* Screen shot of printed output data (출력된 데이터 스크린 샷)
//////////////////////////////////////////////////////////////////
* Plot in MATLAB (MATLAB 에서 plot한 그래프)