Professional Documents
Culture Documents
#!/usr/local/bin/perl
sw.pl
~.~
#Smith-Waterman Algorithm
}
else
{
$match=$misp;
}
~"
- ",....-----
SW.pl
{
$table[$i] [$jJ=$r;
Sarrow[$i] [$j]="u";
}
# elsif«$d>$r) && ($d>$l))
else
{
$table[$i] [$j]=$d;
$arrow[$i] [$j]="d";
}
#If resulting value<O, make it zero.
i f($tab 1 e [$i J [$j] <0)
{
$table[$i] [$j]=O;
}
}
}
$max=O;
#Display table and find maximum entry value
for($i=O;$i<=$lenl;$i++)
{
for($j=0;$j<=$len2;$j++)
{
pri ntf("Stab 1 e [$i] [$j] \ t") ; #For displaying the table
$x=$arrow[$i] [$j];
if($x eq "d") #Go to diaconal element
{
$i--;
$j--;
$disl[$len]=substr($seql,$i,l);
$dis2[$len]=substr($seq2,$j,l);
}
elsif($x eq "U") #Go to above element
{
$i--;
$dis2[$len]="-";
$dis1[$len]=substr($seql,Si,l);
}
#elsif($x eq "r") #Go to left element
page 2
Pa 1">1
JlwtCI' Valuc
1\1;11..grad 1e.5 nctwork classifier to classify planlJing of right hand
_.- movement and relaxed state. For the present stucl~
Epoch 5000
Lev.:nberg-Marquardt showed better compare to RBI'.
I\lu 0001
--- Figure 3 showed eomparisolJ of classitication accurac~
!\lu dee 01 for LM and RBI' methods
!\Ill..ine 10
Gn1 Classification Accuracv (%)
Ie.O6
Session Le\'enberg- Radial basis
'"krn redue
marquard! function
!\1, Mu I 1e10 I 78.84 75.00
T~hlc I Dirferent valuc ofparanl<'I<'r 2 75.00 7058
3 6703 66.66
D. Radia! basis jill1cliol1l1cllI'(wk 4 65.384 6315
5 63.46 60,00
A typical RBI' Iletworks consist of three layer of Average 69.94 67.07
-
neuron (input. hiddell. output) which arc compollenl of T~ble2; colt)p~rison of accuracy ofLM&RBF method
fuUy connccted feed forwurd archita:ture. The special
IV. DISCUSSION AND CONCLUStON
radial b1Jj;;SbLl~avior is performed hy the single layer
of hidden neurons. The activation of a hiddcn neuron
is dcterrnined in 1\\0 steps. The !irs! js cOl11puti"~gthe The present studies evaluate tlte performance of t\\'o
distance '(USU,ll!y by using the Euclidean norm). ANN methods. We compared the perfonnance of
hetween tl1\; two veclOrs which arc yielding by the n.:uralnctwork (NN) method Levenbcrg-Mnrquardt and
activation of the input layer (x) and th.: link IV.:ight Radial basis function netwQrk for planning of right hand
between the input layer and the current hidd.:n layer, movement w,r.t. relaxed state. Levenberg-Marquardt
second n function h which is bcll shaped (c.g. method showed the highest penormance with the
Gaussian) is applied. using the obtained distance to accuracy 01'78.8%.
"
get the Uilitl activation of the hidden neuron. The
~H;tjvation of ;ll1euron in the ()utputla~..;r is t1Clcnnincd
liS usual h~ C{}11-1pm:ing "tile w.:ighted sum ofinpul.
Radii\1 basis \\"(}rkbest when many training \.:ctors ar.:
available. A RBI' network can be described as a linear
combination of basis function i.c. 8° -.'I---;
~,..60
" r
.'-==~~~j::~7~"r;;;:
~ I
/. 0"0.f(xl'~ ~ 0,11>, (x) ~ 401
Whae
=;: /? Ihe output variab!.:: j i
X): I? thc input variable: ~20
G
(I, the optimal \\'.:ight~:
</'(.\"I the radial basis functiolJ. oL
3
Session
":.11.'11hasi, t"lIIJC!jOIl. ,111<1.1, rl'j'r\.'s\.'nlS its c\.'lller IIX- 1l\.'lllork. Wher\.' the perfi.)f"Jnance giv<.:n b~ Le\ \.'nberg-
191, \Iarquardt method i~ signilicantly bett\.'r than oth<:r.
III RESUL T
.~ -=-
=~~
=-=-. ""' = = =="'" ~".~
'"
""
Page 3