Multivariate Point Process Package  0.1
Classes | Public Member Functions | List of all members
ConTinEst Class Reference

ConTinEst implements the scalable influence estimation algorithm. More...

#include "include/ConTinEst.h"

Public Member Functions

 ConTinEst (Graph *G_inverse, Graph *G, unsigned num_samples, unsigned num_rankings)
 The constructor. More...
 
 ~ConTinEst ()
 
void GetLeastElementLists ()
 Calculate the least-label lists. More...
 
float EstimateNeighborhood (const std::set< unsigned > &sources, float T)
 Estimate the neighboorhood size of a given set of sources. More...
 
std::vector< std::set< unsigned > > Optimize (const std::vector< double > &setT, const std::vector< unsigned > &setK)
 Continuous-time influence maximization. More...
 
double RandomSimulation (double T, std::set< unsigned > &initialSet, unsigned C)
 Continuous-time influence maximization by Monte-carlo simulations. More...
 

Detailed Description

ConTinEst implements the scalable influence estimation algorithm.

The current version does not include the MPI implementaion, so the memory consumption will be large when working with networks of millions of nodes.

Definition at line 20 of file ContinEst.h.

Constructor & Destructor Documentation

ConTinEst::ConTinEst ( Graph G_inverse,
Graph G,
unsigned  num_samples,
unsigned  num_rankings 
)

The constructor.

Parameters

Definition at line 9 of file ContinEst.cc.

ConTinEst::~ConTinEst ( )

Definition at line 39 of file ContinEst.cc.

Member Function Documentation

float ConTinEst::EstimateNeighborhood ( const std::set< unsigned > &  sources,
float  T 
)

Estimate the neighboorhood size of a given set of sources.

Parameters
sourcesa set of source nodes.
Tobservation window.
Returns
the estimated neighboorhood size of the given source set.

Definition at line 166 of file ContinEst.cc.

void ConTinEst::GetLeastElementLists ( )

Calculate the least-label lists.

Definition at line 132 of file ContinEst.cc.

std::vector< std::set< unsigned > > ConTinEst::Optimize ( const std::vector< double > &  setT,
const std::vector< unsigned > &  setK 
)

Continuous-time influence maximization.

Parameters
[in]setTa set of observation windows.
[in]setKa set of maximum source-set sizes.
Returns
the collection of sets of selected sources.

Definition at line 280 of file ContinEst.cc.

double ConTinEst::RandomSimulation ( double  T,
std::set< unsigned > &  initialSet,
unsigned  C 
)

Continuous-time influence maximization by Monte-carlo simulations.

Parameters
Tobservation window.
initialSeta set of source nodes.
Cthe maximum number of selected sources.
Returns
the estimated influence of the given source set.

Definition at line 365 of file ContinEst.cc.


The documentation for this class was generated from the following files: