12/1/13
ECG Filtering
Willem Einthovens EKG machine, 1903
ECG Filtering
n
Three common noise sources
q
q
q
n
n
n
Baseline wander
Power line interference
Muscle noise
When filtering any biomedical sign
#include<iostream>
#include<iomanip>
#include<cstdlib>
using namespace std;
class node
cfw_
public:
int data;
node* left;
node* right;
;
node *root,*current;
class bst : public node
cfw_
public:
int n
C+
C
Juan Souli+ Language Tutorial
I/O
Scope of Variables
Literals
a=5 ;
5 is a literal constant
Basic I/O
To read entire lines
string stream
Standard input
The standard input device is usually the
k
C+
FUNCTIONS
FORMAT
Many calling methods
Display(a,b,c,d,e);
Parameter : The names given in the
function definition are called Parameters.
Argument : The values supplied in the
function call are calle
Searching Algorithms
Searching Algorithms
Necessary components to search a list of fdata
Array containing the list
Length of the list
Item for which you are searching
After search completed
If ite
Programming
Questions
What
is the use of endl ?
How is setw used?
setprecision()
setfill()
Write
a program to display a
table which shows three items
and their prices .
The items are
potatoes
pins
per
Prefix, Postfix, Infix
Notation
Infix Notation
To
add A, B, we write
A+B
To multiply A, B, we write
A*B
The operators ('+' and '*') go in
between the operands ('A' and 'B')
This is "Infix" notatio
ARRAYS
ARRAYS
are compound data types
Data in array form
Loop for 10 scores
Using arrays in C+
Declaring and defining arrays
Initializing arrays
Exchanging content the wrong way
Exchanging content wit
MERGE SORT
Mergesort
Mergesort (divide-and-conquer)
Divide array into two halves.
A
A
L
L
G
G
O
O
R
R
I
T
I
H
T
M
H
S
M
S
divide
Mergesort
Mergesort (divide-and-conquer)
Divide array into two halves.
import java.util.Scanner;
/*
* CarPark.java
*
* This program allows user to enter details of N car's license plate numbers,
* and the number of hours spent at rocky car park system, after that it will
1. Given
Wavelength = 1.3
6
10
m
Bandwidth = 60MHz
Load resistance = 100
Noise figure = 3dB = 2
6
and B T =100 10
9
BER = 10
Quantum efficiency = 0.9
9
Q = 6 for BER = 10 ,
From text book, we get ,
R
1Sol)
a)
y=3+2 x
dy
dt
Given
dx
=3
dt
dx
dt
2
=6
b)
y=3 x4
dy
dt
dx
=2
dt
Given
dx
dt
3
=6
c)
y=32 x 2
dx
=2 and
dt
Given
dy
dt
4
xdx
dt
=
x=3
122
= 24
d)
y=
dy
dt
1x
1+ x
Given
dx
=2 and
dt
( (1+ x
1. The modulation technique is 16 QAM
2.
m=
log 2 N
where N = number of symbols
m = number of bits per symbol.
For BPSK, N = 2 and m = 1
For 16 QAM, N = 16 and m = 4
We know that, the bandwidth is dir
1. Tone frequency is 2KHz
2. DSSC - Amplitude modulation. The carrier frequency is 100MHz.
3. Modulation index :
It is defined as ratio of the amplitude value of message signal to
Am
AC
the carrier si
DICTIONARIES AND
HASHING
1
/51
The Dictionary ADT
a dictionary (table) is an abstract model of a
database
, a dictionary stores key-element pairs
the main operation supported by a
dictionary is searc