- data_generation: Generate synthetic data set with the following processure:
1.1. Generate G0
1.2. Generate G1,...,G20 smoothly
1.3. Add noise to G1,...,G20. The noise is dirichlet distributed
1.4. Generate data set according to G1,...,G20
-
discreternd: Generate discrete distributed data
-
dpDisrnd: Generate DP distributed distributions with a discrete base measure
-
gem: Generate DP distributed distribution
-
kl: Compute KL-divergence between two discrete distributions
-
sample_the_first: used in smoothSample
-
sample_the_rest: used in smoothSample
-
smoothSample: sampling a discrete distribution with base measure G0 and force it to have small symetric KL with a given distribution
-
symKL: Compute the symetric KL between two discrete distributions. Whenever the prob of any distribution is zero, we set it to be 1e-5
-
synthc_particle: Use particle filtering to sample distributions smoothly with synthetic data set
-
traditional_particle: Use particle filtering to sample distributions (DP distributed) with traditional methods.
-
trucBetarnd: Generate truncated Beta distributed data.
-
mykmeans: used in spectral clustering.
-
sym_cluster: the spectral clustering with symmetric normalized Laplacian.
-
change_bound: show how the sym KL for G_2,1 and G_2,2 changes with different bound B.
-
compare_kl: compare the sym KL with SHDP and HDP.
-
main: generate data with data_generate and sample G_1:20 from SHDP and HDP.
-
pami: the application to PAMI data set with SHDP.
-
pami_hdp: the application to PAMI data set with HDP.
- the pami data set. The rows are corresponding to pami papers and the columns are corresponding to words.