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 signal care should
be taken not to alter the desired inform
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
keyboard.
int age;
cin > age;
For strings
cin stops when
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 called Arguments.
Formal Parameter :Parameter Written In
Fun
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 item found, report success, return location in array
If i
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
personalcomputer
Calculate
the area of a circle and
displa
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" notation.
Prefix Notation
Instead
of saying "A plus B", we
co
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 with a temporary
variable
Arrays and Functions-Passing ind
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.
Recursively sort each half.
A
L
G
O
R
I
T
H
M
S
A
L
G
O
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
display
* the total cost of parking and statistical in
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 ,
Receiver sensitivity =
T =
Q T
R
4 KTB F n
2 RL
By subst
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( 1x ) )
2
(1+ x)
2
( 1+ x )2
*
dx
dt
*
x=1
dx
dt
1
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 directly proportional to the
baud rate.
Let the bit rate i
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 signal =
4. Power in the carrier
PC
= 0.588
=
A2
=
2
3.61
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 searching by key
Like a bank account.
2
/51
Student info
Ro