public class NML
extends java.lang.Object
Constructor and Description |
---|
NML() |
Modifier and Type | Method and Description |
---|---|
static double |
eTerm(int x)
Used for fsNML parameter estimation
|
static double[][] |
multinomialaNormalizingConstantTable(de.jstacs.data.alphabets.DiscreteAlphabet alph,
int sampleSize)
Computes the NML normalizing constant for the multinomial distribution (Kontkanen & Myllymaki 2007)
|
static double |
SzpankowskiApproximation(int K,
int n)
Computes the Szpankowski approximation of the multinomal NML
|
public static double[][] multinomialaNormalizingConstantTable(de.jstacs.data.alphabets.DiscreteAlphabet alph, int sampleSize)
alph
- the alphabet of the multinomial distributionsampleSize
- the size of the vectorpublic static double SzpankowskiApproximation(int K, int n)
K
- categoriesn
- number of data pointspublic static double eTerm(int x)
x
- any real number