Public Member Functions | List of all members
ldaplusplus::corpus::CorpusIndexes Class Reference

#include <Document.hpp>

Public Member Functions

 CorpusIndexes (int N, int random_state=0)
int get_index (int index) const
void shuffle ()

Detailed Description

Implement a shuffle method that shuffles indexes and provides them to classes who want to implement the corpus interface.

Member Function Documentation

int ldaplusplus::corpus::CorpusIndexes::get_index ( int  index) const

Return the document index that corresponds to the sequential index after a shuffle.

void ldaplusplus::corpus::CorpusIndexes::shuffle ( )

Shuffle the indexes around.

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