public class Discretes.Shifted extends Discretes
UnParameterised
Model of Discretes shifted by
+offset
. A shifted UnParameterised Model
estimates
or otherwise creates a
shifted Model
. Position parameters,
such as mean μ, are in effect moved to μ+offset.
Bounded
Model may reduce the
data-space. Also see Discretes.shifted(int)
and Discretes.M.shifted(int)
.UPModel.Transform
for a
more general way of transforming any Model using
a Function
.Discretes.Bounded, Discretes.M, Discretes.Shifted, Discretes.Uniform
UPModel.Est, UPModel.Transform
Function.Native.WithInverse
Function.Cts2Cts, Function.Cts2Cts2Cts, Function.CtsD2CtsD, Function.HasInverse, Function.Native, Function.Native2, Function.Native3
Value.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 |
---|---|
int |
offset
The offset adjustment, as an int.
|
Constructor and Description |
---|
Shifted(Value dp)
The problem defining parameter, dp, is
the
offset Int. |
Modifier and Type | Method and Description |
---|---|
UPModel.Est |
estimator(Value ps)
The shifted Estimator estimates a
shifted Model . |
Discretes.M |
sp2Model(double msg1,
double msg2,
Value sp)
Given two-part message lengths msg1 & msg2, and statistical
parameter sp, return a fully parameterised
M-Model . |
Value |
stats(boolean add,
Value ss0,
Value ss1)
Combine sufficient statisticses 'ss0' and 'ss1' additively
(add=true), or remove ss1 from ss0 (add=false).
|
Value |
stats(Vector ds,
int lo,
int hi)
Return sufficient statistics, ss=stats(ds,lo,hi), for a
shifted (-
offset ) data-set ds[lo,hi). |
java.lang.String |
toString()
Return a String representation of 'this' UnParameterised Model,
including its problem-
defining parameters. |
public Value stats(Vector ds, int lo, int hi)
offset
) data-set ds[lo,hi).public Value stats(boolean add, Value ss0, Value ss1)
UPModel
stats(ds,lo,hi)
.public UPModel.Est estimator(Value ps)
shifted Model
.public Discretes.M sp2Model(double msg1, double msg2, Value sp)
UPModel