public static class Continuous.Uniform extends Continuous.Bounded
Continuous.Uniform.M, and the Discretes.Uniform.| Modifier and Type | Class and Description |
|---|---|
class |
Continuous.Uniform.M
Mdl should be sufficient for many purposes. |
Continuous.Bounded, Continuous.Transform, Continuous.UniformUPModel.EstFunction.Native.WithInverseFunction.Cts2Cts, Function.Cts2Cts2Cts, Function.CtsD2CtsD, Function.HasInverse, Function.Native, Function.Native2, Function.Native3Value.Atomic, Value.Bool, Value.Char, Value.Chars, Value.Cts, Value.Defer, Value.Discrete, Value.Enum, Value.Inc_Or, Value.Int, Value.Lambda, Value.List, Value.Maybe, Value.Option, Value.Real, Value.Scannable, Value.Structured, Value.Triv, Value.Tuple| Modifier and Type | Field and Description |
|---|---|
Continuous.Uniform.M |
Mdl
The fully parameterised Uniform continuous
Model on [lwb, upb].
|
| Constructor and Description |
|---|
Uniform(Value bounds)
Construct an UnParameterised Uniform Model
(distribution) over the bounds=[lwb,upb].
|
| Modifier and Type | Method and Description |
|---|---|
Value.Tuple |
bounds()
Return (lwb, upb) of the data-space.
|
Estimator |
estimator(Value t)
The trivial Estimator that is a Uniform's.
|
double |
lwb_x()
The lower bound of the data-space as a double.
|
double |
nlLH(Value ss)
Given sufficient statistics,
stats(ds), |
Continuous.Uniform.M |
sp2Model(double m1,
double m2,
Value t)
Return a fully (trivially) parameterised Uniform
Continuous
Model;
note that the statistical parameter, t, is trivial. |
Value.Tuple |
stats(boolean add,
Value ss0,
Value ss1)
Combine sufficient statisticses 'ss0' and 'ss1' additively
(add=true), or remove ss1 from ss0 (add=false).
|
Value.Tuple |
stats(Vector ds,
int lo,
int hi)
Given a data-set, ds, return sufficient statistics, ss, that
is the (weighted) number of elements and their nlAoM.
|
double |
upb_x()
The upper bound of the data-space as a double.
|
lwb, upbtransformpublic final Continuous.Uniform.M Mdl
public Uniform(Value bounds)
public Value.Tuple bounds()
Continuous.Boundedbounds in class Continuous.Boundedpublic double lwb_x()
Continuous.Boundedlwb_x in class Continuous.Boundedpublic double upb_x()
Continuous.Boundedupb_x in class Continuous.Boundedpublic Continuous.Uniform.M sp2Model(double m1, double m2, Value t)
Model;
note that the statistical parameter, t, is trivial.sp2Model in class Continuouspublic Value.Tuple stats(Vector ds, int lo, int hi)
here.public Value.Tuple stats(boolean add, Value ss0, Value ss1)
UPModelstats(ds,lo,hi).public double nlLH(Value ss)
stats(ds),Continuous.Uniform.M is trivial,
so nlLH does not depend on it and nlLH can be here in
the UnParameterised Model.