Public Member Functions | List of all members
ldaplusplus::corpus::ClassificationCorpus Class Referenceabstract

#include <Document.hpp>

Inheritance diagram for ldaplusplus::corpus::ClassificationCorpus:
ldaplusplus::corpus::Corpus ldaplusplus::corpus::EigenClassificationCorpus

Public Member Functions

virtual float get_prior (int y) const =0
- Public Member Functions inherited from ldaplusplus::corpus::Corpus
virtual size_t size () const =0
virtual const std::shared_ptr< Documentat (size_t index) const =0
virtual void shuffle ()=0

Detailed Description

A corpus that contains information about the documents' classes (namely their priors).

Member Function Documentation

virtual float ldaplusplus::corpus::ClassificationCorpus::get_prior ( int  y) const
pure virtual
yA class
The count of the documents in class y divided by the count of all the documents

Implemented in ldaplusplus::corpus::EigenClassificationCorpus.

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