public class Intervals.M extends UPFunctionModel.M
Model.Defaults, Model.TransformValue.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 |
|---|---|
Vector |
cutPts
The N-1 ordered cut-points, N≥1, dividing the data-space
of the input datum, id, into N intervals (buckets),
{<cp0, [cp0,cp1), ...,
≥cpN-2}.
|
Model[] |
mdls
The N Models of the output datum, od, one for
each
interval of id, N≥1. |
| Modifier and Type | Method and Description |
|---|---|
Model |
condModel(Value id)
Return
mdls[interval(id)]. |
int |
interval(Value id)
Return 'i' where input datum 'id' falls into
interval
'i', 0 ≤ i < N. |
double |
nlLH(Value ss)
Assumes that
statistics 'ss'
are the data-set itself (actually sorted). |
asUPModel, condNl2Pr, condNlPr, condPr, nlPr, pr, random, randomasEstimator, m1m2sp, msg, msg1, msg1bits, msg2, msg2bits, msgBits, nl2LH, nl2Pr, random, randomSeries, statParams, stats, stats, sumNlPr, transform, type, zeroTrivpublic final Vector cutPts
mdls.public M(double msg1,
double msg2,
Value sp)
public double nlLH(Value ss)
statistics 'ss'
are the data-set itself (actually sorted).public int interval(Value id)
interval
'i', 0 ≤ i < N.public Model condModel(Value id)
mdls[interval(id)].
That is, return the Model of od conditional on id.condModel in class FunctionModel