|
|
/*************************************************************************** salsa.h - description ------------------- begin : Mon Mär 10 2003 copyright : (C) 2003 by Ingmar Bauer email : ingmar@metacrawler.de ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef SALSA_H #define SALSA_H /**Stochastic Approach for Link Structure Analysis *@author Ingmar Bauer */ class salsa { public: salsa(datasource &ds); salsa(matrixsource &ms, float c, float eps); ~salsa(); int createMatrices(); int saveMatrices(string fname); vectorcalc(); vector calc_eigenvector(); private: int size; datasource *ds; matrixsource *ms; matrix adj; // pointer to adjascent matrix matrix hub; /** dampening factor */ float c; float eps; matrix auth; }; #endif
Generated by: ingmar on pluto on Fri Aug 8 21:29:16 2003, using kdoc 2.0a54. |