public abstract static class SeriesModel.Analysis extends Series
produce
a Series of Models.Series.Discrete, Series.Int, Series.Lines, Series.Range, Series.Separator
Modifier and Type | Field and Description |
---|---|
protected Series |
ds
The Series produced by the given data Series.
|
Constructor and Description |
---|
Analysis(Value.Scannable sv)
Construct (prepare for) the Analysis of
a given Scannable Value sv.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
advance()
|
Value.Tuple |
elt()
|
Value |
eltD()
Return the current element of the data Series;
also see
elt() . |
abstract Model |
eltM()
|
Model |
finalModel()
If and when the data Series is exhausted, return
the Model of a future, hypothetical data element.
|
boolean |
hasSome()
Return ds.hasSome() where ds is the given data Series.
|
double |
nl2Pr()
The neg log (base 2) probability of the current data element.
|
double |
nlPr()
The negative log probability of the current data element.
|
int |
position()
Return ds.position() where ds is in the given data Series.
|
double |
pr()
The probability of the current data element.
|
double |
remainingNlPr()
The total nlPr() of any remaining elements of the Series,
including the current element if there is one.
|
protected final Series ds
public Analysis(Value.Scannable sv)
public boolean hasSome()
public int position()
public abstract Model eltM()
public Model finalModel()
eltM()
.public Value.Tuple elt()
eltM()
, eltD()
〉.
Throw a RuntimeException if there is no data element.
Also see finalModel()
.public double pr()
public double nlPr()
remainingNlPr()
.public double nl2Pr()
public double remainingNlPr()