public class Musicians
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Type.Tuple |
INT2
Each row of the input is: INT2 = int x int, being age & frequency.
|
static Value.Real |
mLwb
Bounds on mean(s) and standard deviation(s).
|
static Value.Real |
mUpb
Bounds on mean(s) and standard deviation(s).
|
static Value.Real |
sLwb
Bounds on mean(s) and standard deviation(s).
|
static Value.Real |
sUpb
Bounds on mean(s) and standard deviation(s).
|
Constructor and Description |
---|
Musicians() |
Modifier and Type | Method and Description |
---|---|
static void |
analyse(java.lang.String title,
Vector ds)
|
static Vector |
getData(java.lang.String filename)
Get the data from the named file;
return a Vector of ages weighted by frequency.
|
static Mixture.M |
improve(Mixture.Est est,
Mixture.M mx1,
Vector ds)
Starting with mixture model 'mx1', use
est.
EM(mx1,ds)
to improve it. |
static void |
main(java.lang.String[] argv)
Simple analysis of a data-set, [(ageAtDeath, frequency)],
from a given file or from file ../data/musicians-age-freq.
|
static void |
results(Model m,
Vector ds)
Display
Model 'm', its two-part message length, and
the negative log likelihood of data-set 'ds'. |
static java.lang.String |
x2S(double x)
A double compactly to at least 4 significant figures.
|
public static Type.Tuple INT2
public static Value.Real mLwb
public static Value.Real mUpb
public static Value.Real sLwb
public static Value.Real sUpb
public static java.lang.String x2S(double x)
public static Vector getData(java.lang.String filename)
public static void analyse(java.lang.String title, Vector ds)
public static void results(Model m, Vector ds)
Model
'm', its two-part message length, and
the negative log likelihood
of data-set 'ds'.public static Mixture.M improve(Mixture.Est est, Mixture.M mx1, Vector ds)
EM(mx1,ds)
to improve it.public static void main(java.lang.String[] argv)