A Topic object. More...
#include <TopicWord.h>
Public Member Functions | |
| TopicWord (int realNumber, int topicCount=0, FILE_POS_TYPE filePosition=0) | |
| Initialise the topic with statistics, such as id, list length and file position in index. | |
| TopicWord (FileIO *file) | |
| Read topic from a file. | |
| void | assignPosition (FILE_POS_TYPE position) |
| Assign the file position. | |
| void | assignRowLimits (Quantise *quantiser) |
| Assign the topic float range from the quantiser. | |
| void | retrieveRowLimits (Quantise *quantiser) |
| Provide topic value range to the quantiser. | |
| FILE_POS_TYPE | filePosition (void) |
| Return the topic file position. | |
| int | number (void) |
| Return the topic id. | |
| int | topicCount (void) |
| Return the number of elements associated to the topic. | |
| int | length (void) |
| Return the number of elements associated to the topic. | |
| void | incrementTopicCount (void) |
| Increment the number of elements assigned to the topic. | |
| void | purge (FileIO *file) |
| Write the topic to the provided file. | |
| void | salvage (FileIO *file) |
| Read the topic from a file. | |
A Topic object.
This class is used to store and manipulate topic objects produced from methods such as LSA, PLSA and LDA.
1.6.1