public abstract static class Discretes.Bounded extends Discretes
Discretes.Bounded.M
.Modifier and Type | Class and Description |
---|---|
class |
Discretes.Bounded.M
The (abstract) class of fully parameterised
Discrete Bounded Models.
|
Discretes.Bounded, 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 | Method and Description |
---|---|
abstract Value.Tuple |
bounds()
|
Vector |
freqs(boolean add,
Value ss0,
Value ss1)
For frequency counts 'ss0' and 'ss1', either combine
ss0 and ss1 (add=true), or remove ss1 from ss0 (add=false).
|
Vector |
freqs(Vector ds) |
Vector |
freqs(Vector ds,
int lo,
int hi)
For probable use by
stats(ds,lo,hi) , return the
frequency counts of elements [lo, hi) of data-set 'ds'. |
int |
lwb_n()
lwb() .n() |
Value |
lwb()
The lower bound on 'this' Model's dataspace.
|
int |
upb_n()
upb() .n() |
Value |
upb()
The upper bound on 'this' Model's dataspace.
|
defnParams, estimator, main, stats, stats, stats, stats, toString, transform
public Bounded(Value sp)
public abstract Value.Tuple bounds()
public Value lwb()
public Value upb()
public int lwb_n()
lwb()
.n() public int upb_n()
upb()
.n() public Vector freqs(Vector ds, int lo, int hi)
stats(ds,lo,hi)
, return the
frequency counts of elements [lo, hi) of data-set 'ds'.
Note that data weights
are taken into
account. More on stats here
.public Vector freqs(boolean add, Value ss0, Value ss1)
freqs(ds,lo,hi)
.
For probable use by
stats(add,ss0,ss1)
.