<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <link rel="stylesheet" href="/s/style.css" type="text/css">
  <title>search.cpan.org: Algorithm::HITS - Perl implementation of HITS algorithm</title>
 </head>
 <body id="cpansearch">
<center><div class="logo"><a href="/"><img src="/s/img/cpan_banner.png" alt="CPAN"></a></div></center>
<div class="menubar">
 <a href="/">Home</a>
&middot; <a href="/author/">Authors</a>
&middot; <a href="/recent">Recent</a>
&middot; <a href="/news">News</a>
&middot; <a href="/mirror">Mirrors</a>
&middot; <a href="/faq.html">FAQ</a>
&middot; <a href="/feedback">Feedback</a>
</div>
<form method="get" action="/search" name="f" class="searchbox">
<input type="text" name="query" value="" size="35">
<br>in <select name="mode">
 <option value="all">All</option>
 <option value="module" >Modules</option>
 <option value="dist" >Distributions</option>
 <option value="author" >Authors</option>
</select>&nbsp;<input type="submit" value="CPAN Search">
</form>


 <a name="_top"></a>
 
 <div class=path>
  <a href="/~xern/">&#12556;&#12583;&#12579;&#714;  &#12585;&#12581;&#711;  &#12563;&#12584;&#12581;</a> >
  <a href="/~xern/Algorithm-HITS-0.03/">Algorithm-HITS-0.03</a> >
  Algorithm::HITS
 </div>

  Module Version:  0.03 &nbsp;
  <a href="/src/XERN/Algorithm-HITS-0.03/lib/Algorithm/HITS.pm">Source</a> &nbsp;
 <p /><div class=pod>
<a name="_top"></a>
<div class=pod>
<div class=toc><ul><li><a href="#NAME">NAME</a>
<li><a href="#DESCRIPTION">DESCRIPTION</a>
<li><a href="#USAGE">USAGE</a>
<ul><li><a href="#SET_UP_GRAPH">SET UP GRAPH</a>
<li><a href="#ITERATE_THROUGH_COMPUTATION">ITERATE THROUGH COMPUTATION</a>
<li><a href="#RETURN_RESULT">RETURN RESULT</a>
<li><a href="#SETTINGS">SETTINGS</a>
</ul>
<li><a href="#COPYRIGHT_AND_LICENSE">COPYRIGHT AND LICENSE</a>
</ul>
</div>
<!-- generated by TUCS::Pod2HTML v, using Pod::Simple::PullParser v2.02, under Perl v5.008003 at Wed Feb 23 09:42:50 2005 GMT -->
<!-- start doc -->

<h1><a name="NAME"></a
>NAME <a href='#_top'><img alt='^' src='/s/img/up.gif'></a></h1>

<p>Algorithm::HITS &#45; Perl implementation of HITS algorithm</p>

<h1><a name="DESCRIPTION"></a
>DESCRIPTION <a href='#_top'><img alt='^' src='/s/img/up.gif'></a></h1>

<p>This module implements the HITS algorithm (Kleinberg&#39;s hypertext&#45;induced topic selection).</p>

<p>See also <a href='http://www2002.org/CDROM/refereed/643/node1.html'>http://www2002.org/CDROM/refereed/643/node1.html</a></p>

<h1><a name="USAGE"></a
>USAGE <a href='#_top'><img alt='^' src='/s/img/up.gif'></a></h1>

<pre>  use Algorithm::HITS;

  $h = new Algorithm::HITS;</pre>

<h2><a name="SET_UP_GRAPH"></a
>SET UP GRAPH</h2>

<pre>  $h&#45;&#62;graph(
            [
             0 =&#62; 1,
             0 =&#62; 2,
             
             1 =&#62; 0,
             1 =&#62; 2,
             
             2 =&#62; 1,
             ]
            );</pre>

<h2><a name="ITERATE_THROUGH_COMPUTATION"></a
>ITERATE THROUGH COMPUTATION</h2>

<p>Iterate 1000 times.</p>

<pre>  $h&#45;&#62;iterate(1000);</pre>

<p>Default value is 1</p>

<pre>  $h&#45;&#62;iterate();</pre>

<h2><a name="RETURN_RESULT"></a
>RETURN RESULT</h2>

<p>Return hub vector and authority vector in PDL object format.</p>

<pre>  $h&#45;&#62;result();</pre>

<h2><a name="SETTINGS"></a
>SETTINGS</h2>

<p>Set initial authority vector. Vector is normalized to unit Euclidean length.</p>

<pre>  $h&#45;&#62;set_authority(\@v);</pre>

<p>Set initial hub vector. Vector is normalized to unit Euclidean length.</p>

<pre>  $h&#45;&#62;set_hub(\@v);</pre>

<h1><a name="COPYRIGHT_AND_LICENSE"></a
>COPYRIGHT AND LICENSE <a href='#_top'><img alt='^' src='/s/img/up.gif'></a></h1>

<p>Copyright (C) 2004 by Yung&#45;chung Lin (a.k.a. xern) &#60;xern@cpan.org&#62;</p>

<p>This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself</p>
<!-- end doc -->

</div>


</div>
<div class="footer">
hosted by <a href="http://www.perl.org/siteinfo.html">perl.org</a>, hardware provided by<br/>
<a href="http://www.bizrate.com"><img src="/s/img/bizrate_logo.png"></a>
</div>
<!-- Wed Feb 23 09:42:50 2005 GMT (0.0654628276824951) -->
 </body>
</html>
