4-1 함수의 기초, 정수가 아닌 값을 리턴하는 함수, 외부 변수
·
2021-가을학기/프로그래밍개론
함수의 기초 예제 프로그램 [설계] 동작 : 텍스트 행들을 읽고 특정 패턴("ould")을 포함하는 행들을 출력한다. 의사코드 while (there's another line) if (the line contains the pattern) print it​ 입출력 예시 Ah Love! could you and I with Fate conspire To grasp this sorry Scheme of Things entire, Would not we shatter it to bits -- and then Re-mould it nearer to the Heart’s Desire!​ Ah Love! could you and I with Fate conspire Would not we shatter it to..
2-4 비트 단위 연산자
·
2021-가을학기/프로그래밍개론
지난 시간에 배운 산술 연산자, 관계 연산자, 논리 연산자 정리  산술 연산자 (arithmetic operator)이항연산자 단항연산자 차이: 읽는 방법이 다름단항연산자 = 부호오른쪽에서 왼쪽으로이항연산자왼쪽에서 오른쪽으로  관계 연산자 (relational operator) :  >, >=, >, >=, 관계 연산자는 산술 연산자보다 우선 순위가 낮다. 예 )"i "과 "i " 은 동일하다."year % 4 == 0" 과 "(year%4) ==0" 은 동일하다.연산의 결과:참 - 1, 거짓 - 0  논리 연산자 (logical operator): &&, ||, !&&논리적 AND||논리적 OR!논리적 NOT우선순위:  ! > && > ||연산진행방향 : 왼쪽에서 오른쪽참/거짓이 정해지면 연산을 멈춘다..
[Chapter 7] Probability and Samples: the Distribution of Sample Means
·
2021-가을학기/심리통계분석 I
7.1   Samples, Populations, and the Distribution of Sample MeansHowever, the z-scores and probabilities that we have considered so far are limited to situations in which the sample consists of a single score. Most research studies involve much larger sampls such as n = 25 preschool children or n = 100 American Idol contsetants. In these situations, the sample mean, rather than a single score, is..
3-2 while 루프와 for 루프, do-while 루프, break&continue
·
2021-가을학기/프로그래밍개론
3-1 이후에 자습자료 하나 있음. 아래의 binsearch() 함수에 대한 각 호출에 대해 함수 안 에서 low, high, mid 등이 어떻게 변화하는지 추적해보라 main () { int a[] = {2, 5, 7, 9, 13, 17, 20, 22, 28, 33, 40, 40, 51, 57, 70}; printf("%d\n", binsearch(1, a, 15)); printf("%d\n", binsearch(2, a, 15)); printf("%d\n", binsearch(3, a, 15)); printf("%d\n", binsearch(5, a, 15)); printf("%d\n", binsearch(6, a, 15)); printf("%d\n", binsearch(40, a, 15)); pri..
3-1 문장과 블록, if-else, else-if, switch
·
2021-가을학기/프로그래밍개론
문장과 블록 Statement and Block expr; 하나의 문장; //세미콜론이 오면 문장이 종료함을 의미한다. null 문장 : 식 없이 세미콜론만으로도 문장이 된다. if-else 문, while 문 등과 같이 좀 더 복잡한 문장들도 있다. 블록 0개 이상의 문장을 {}로 묶으면 블록 또는 복합문(compound statement)이 된다. 블록은 if, else, while, for 등에서 한 개의 문장 대신 사용될 수 있다. 함수 본체 부분도 일종의 블록이다. 임의의 블록 앞 부분에는 변수 선언이 나타날 수 있다. 블록을 나타내는 중괄호를 닫은 뒤에는 세미콜론이 오지 않는다. (enum이나 초기화 표현에서 사용되는 중괄호 뒤에는 ;이 온다.) if-else if-else 문장 형식 (els..
[Chapter 6] Probability
·
2021-가을학기/심리통계분석 I
Probability Probability is used to predict the type of samples that are likely to be obtained from a population. Inferential statistics rely on this connection when they use sample data as the basis of making conclusion about population. 확률은 모집단에서 얻을 수 있는 표본 유형을 예측하는 데 사용됩니다. 추리 통계는 표본 데이터를 모집단에 대한 결론을 내리는 기초로 사용할 때 이러한 연결에 의존합니다. Probability for any specific outcome: a fraction of a proportion ..
[Chapter 5] z-Scores: Location of Scores and Standardized Distribution
·
2021-가을학기/심리통계분석 I
5.1 Introduction to z-Scores Raw Scores : original, unchanged scores that are direct result of mesurement a score by itself does not necessarily provide much information about its position within a distribution Z-Scores tell exactly where the original scores are located. // We transform X values into z-scores.. z-Score makes raw scores more meaningful.. Interpreting a Raw Score English Mathemati..
[Chapter 4] Variability 변산성
·
2021-가을학기/심리통계분석 I
4.1 Introduction to Variability Definition : Variability provides a quantitative measure of the differences between scroes in a distribution and describes the degree to which the scores are spread out or clustered together. 변산성은 분포에서 점수 간의 차이에 대한 정량적 측정을 제공하고 점수가 분산되거나 함께 클러스터링되는 정도를 설명합니다. 변산성(變散性,variability)은 한 분포에 위치하는 여러 점수들이 집중 경향에서 퍼져 있는 성질을 전제하면 '일정한 범위(range)에 흩어져 퍼져 있는 값'으로 정의할 수 있다. 출..
[Chapter 3] Central tendency
·
2021-가을학기/심리통계분석 I
3.1 Overview | Central tendency 중심화 경향 (= 중심경향값) Central tendency is a statistical measure to determine a single score that defines the center of a distribution. The goal of central tendency is to find the single score that is most typical or most representative of the entire group. // 중심경향값 // 전체 그룹에서 가장 전형적이고, 전체를 대표하는 한 가지 수치를 결정하는 것이 목표 !!! 3.2 Mean 평균 //산술평균, 기하평균, 조화평균, 산술중심어쩌구 평균 등등... 종류..
[Chapter 2] Frequency Distributions
·
2021-가을학기/심리통계분석 I
Chapter2 Frequency Distributuions 2.1 Frequency Distributions and Frequency Distribution Tables Purpose of Descriptive Statistics: Summarize and describe large quantities of data 기술 통계의 목적은 많은 양의 자료(data)를 설명하고 요약하기 위함이다. Frequency distribution: an organized tabulation of the number of individuals located in each category on the scale of measurement 도수 분포: 측정 척도에서 각각의 범주에 존재하는 개체의 수를 목록, 표, 그래프로..