본문 바로가기

분류 전체보기20

[Numpy] 배열 생성과 형태, 브로드캐스팅 넘파이 가져와서 배열 생성하기축의 개수: x.ndim모양 확인: x.shape데이터 타입: x.dtype배열 타입: type(x)import numpy as npx = np.array([1.0, 2.0, 3.0])x.ndim # 1 //1차원 배열x.shape # (3,)x.dtype # dtype('float64')type(x) # numpy.ndarray 배열의 초기화- np.zeros(): 0으로 채우기zero = np.zeros((2, 3))array([[0., 0., 0.], [0., 0., 0.]])  - np.ones(): 1로 채우기one = np.ones((2, 3))array([[1., 1., 1.], [1., 1., 1.]])  - np.full(): 사.. 2024. 4. 30.
[컴퓨터구조] 조합회로:인코더, 디코더, 멀티플렉서 (디지털 논리회로: Chap0. Digital Logic Circuits) Combinational Components: 조합 구성 요소- More complex integrated circuits(ICs): 보다 복잡한 집적회로- DecoderConverts a coded input to a decoded output: 코드화된 input을 디코딩된 출력으로 변환- EncoderConverts a set of binary inputs into a unique binary code: 이진입력 집합을 고유 이진코드로 변환- Multiplexer(MUX)Selects between several input signals and forwards the selected input to a single output line: 여러 입력 신호 중에서 선택하고 선택한 신호를 단일 출력 라인.. 2024. 4. 29.
[컴퓨터구조] 게이트와 부울대수, 연산식 (디지털 논리회로: Chap0. Digital Logic Circuits) Combinational circuits: 조합회로Output values only depend on the combination of inputs at that point of time: 출력 값은 해당 시점의 입력 조합에만 의존The past input values do not affect the output values: 과거 입력값은 출력값에 영향을 주지 않음- Each output can be represented by the Boolean expressions of inputs: 각 출력은 입력의 부울 식으로 표현될 수 있다- Building block of the circuits is digital logic gate: 회로의 구성 요소는 디지털 논리 게이트   Boolean AlgebraA.. 2024. 4. 29.
[컴퓨터구조] 디지털 논리회로(Chap0. Digital Logic Circuits) Digital System: 디지털 시스템Takes a set of discrete information inputs and discrete internal information (system state): 가져온다, 이산 정보 입력 및 이산 내부 정보 집합(시스템 상태) Generates a set of discrete information outputs: 생성한다 이산 정보출력 집합   Signal: 신호An information variable represented by physical quantity: 물리량으로 표현되는 정보변수- For digital systems, the variable takes on discrete values: 디지털 시스템의 경우 변수는 이산값을 갖는다- Two lev.. 2024. 4. 29.