Sha256: 78a02fa24b4e6f49c6bc6283e8686b497fc22c0e08a3d7845ade2cb366e7e100

Contents?: true

Size: 1.17 KB

Versions: 6

Compression:

Stored size: 1.17 KB

Contents

#ifndef LDA_MODEL_H
#define LDA_MODEL

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "lda.h"
#include "lda-alpha.h"
#include "cokus.h"

#define myrand() (double) (((unsigned long) randomMT()) / 4294967296.)
#define NUM_INIT 1
#define MIN(A,B) (int)((A > B) ? (B) : (A))

void free_lda_model(lda_model*);
void save_lda_model(lda_model*, char*);
lda_model* new_lda_model(int, int);
lda_model* quiet_new_lda_model(int num_terms, int num_topics);
lda_model* new_lda_model(int num_terms, int num_topics);
lda_suffstats* new_lda_suffstats(lda_model* model);
void free_lda_suffstats(lda_model* model, lda_suffstats* ss);
void corpus_initialize_ss(lda_suffstats* ss, lda_model* model, corpus* c);
void quiet_corpus_initialize_ss(lda_suffstats* ss, lda_model* model, corpus* c);
void corpus_initialize_fixed_ss(lda_suffstats* ss, lda_model* model, corpus* c);
void random_initialize_ss(lda_suffstats* ss, lda_model* model);
void zero_initialize_ss(lda_suffstats* ss, lda_model* model);
void lda_mle(lda_model* model, lda_suffstats* ss, int estimate_alpha);
void quiet_lda_mle(lda_model* model, lda_suffstats* ss, int estimate_alpha);
lda_model* load_lda_model(char* model_root);

#endif

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lda-ruby-0.3.9 ext/lda-ruby/lda-model.h
lda-ruby-0.3.8 ext/lda-ruby/lda-model.h
lda-ruby-0.3.7 ext/lda-ruby/lda-model.h
lda-ruby-0.3.6 ext/lda-ruby/lda-model.h
lda-ruby-0.3.5 ext/lda-ruby/lda-model.h
lda-ruby-0.3.4 ext/lda-ruby/lda-model.h