Print

Print


*****  To join INSNA, visit http://www.insna.org  *****

Hi,

I just tested this on an ubuntu 10.04 system.  Steps I followed are:

- installed Statistics::Burst perl module using CPAN ("perl -MCPAN -e
shell", then within the shell "install Statistics::Burst").  this will
obviously differ depending on operating system etc.

- ran the following test perl script:

---------------------
use Data::Dumper;
use Statistics::Burst;
my $burstObj=Statistics::Burst::new();
$burstObj->generateStates(3,.111,2);
$burstObj->gamma(.5);

#my @gap_space = (10, 5, 5);
#$burstObj->setData(\@gap_space);
$burstObj->setData([9,9,10,10,14,5,2,2,2,2,7,5]);

$burstObj->process();
$statesUsed=$burstObj->getStatesUsed();

print Dumper($statesUsed)."\n";
-------------------

I had trouble with the example code provided by the module author.  The
script would crash from trying to take a log of zero.  I then found that
someone else had the same trouble (
http://www.tek-tips.com/viewthread.cfm?qid=1339387&page=141)

and so I used a different example dataset.  See also the discussion of
the 'feature' that you can apparently only model 12 intervals.

I wasn't able to get output that I can interpret but then again I didn't
look at the Kleinberg paper.  By default, it doesn't seem to print
output to the screen so I guess you've got to look at an object that it
creates.

Hope this helps.

Rob

On Sun, 2011-04-17 at 17:32 -0700, Andreas Mangkudun wrote:
> ***** To join INSNA, visit http://www.insna.org ***** 
> Hi everyone - I'm looking for codes for Kleinberg's bursts detection
> algorithm that I can use and modify.
> I found
> this http://search.cpan.org/~tommie/Statistics-Burst-0.2/lib/Statistics/Burst.pm but I can't figure out how it works.
> I plan to use it for twitter and blog data stream. I get the general
> idea of the algorithm but I'm having a hard time to implement/write
> the code
> 
> 
> Thank you for any help
> 
> 
> Best,
> Andre
> 
> _____________________________________________________________________
> SOCNET is a service of INSNA, the professional association for social
> network researchers (http://www.insna.org). To unsubscribe, send an
> email message to [log in to unmask] containing the line
> UNSUBSCRIBE SOCNET in the body of the message.

-- 
-------------------------------------
Dr Robert Ackland
Fellow and Masters Coordinator, Australian Demographic and Social
Research Institute, The Australian National University

homepage: http://adsri.anu.edu.au/people/robert.php
project:  http://voson.anu.edu.au

Information about the Master of Social Research
(Social Science of the Internet specialisation):
http://adsri.anu.edu.au/study/msr.php
-------------------------------------

_____________________________________________________________________
SOCNET is a service of INSNA, the professional association for social
network researchers (http://www.insna.org). To unsubscribe, send
an email message to [log in to unmask] containing the line
UNSUBSCRIBE SOCNET in the body of the message.