|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
description
,
returns description
if its length is no greater than 10,
or description
+ "..." otherwise.
k
.
var
.
parent
to
child
.
orig
are augmented with
the corresponding collections in added
.
origin
to before
character dest
, with probability prob
.
getSatisfiersIfExplicit
and getNonSatisfiersIfExplicit
to indicate that
the set of satisfiers or non-satisfiers consists of all objects
of the appropriate type.
subject
has the same denotation as the constant "null".
true
set to pi.
true
set to 0.5.
true
set to p
.
true
set to 0.5.
true
set to p
.
newWorld
.
objs1
comes before, after, or at the same place as
objs2
in a lexicographic ordering.
var
that satisfy phi
.
x
, y
that returns
the concatenation of x
and y
.
EqualsCPD
class,
are expected to implement.count(o)
returns a number greater
than zero.
obj
,
Boolean.FALSE if this set does not contain obj
, and null
if the underlying partial world is not complete enough to make the
distinction.
elementSet
is affected by the iteration order for
object identifiers in the given context.
argSpec
.
DecayedProposer
.getIterator
(i.e.,
that iterator's hasNext
method has returned false).
var
, make phi
true in the given context.
EOF
Symbol index.
equals
method on each
corresponding pair of objects in the two lists).
equals
method on each
corresponding pair of objects in the two arrays).
Clause
depends on a function
application rather than on a CPD.error
Symbol index.
argSpecs
in the given context.
setEvidence
, or
null
if setEvidence
has not been called.
initialize
,
or null if initialize
has not been called.
x
in c
such
that f(x) != null
, or null
if there
is no such element.
x
in c
satisfying p
, or null
if there is no
such element.
UnivarGaussian
.lower
, in ascending order.
logicalVarForObj
.
upper
, in descending order.
subject
.
subject
anywhere in this formula.
subject
by this term or any of its subterms.
lower
to upper
, inclusive.
argIndex
that,
in combination with the given values for the other arguments,
yield the given function value.
argIndex
that,
in combination with the given values for the other arguments,
yield the given function value.
argIndex
that,
in combination with the given values for the other arguments,
yield the given function value.
func
maps to the value val
.
nextSample
.
nextSample
.
setString
var
is an instantiated basic variable, this
method returns the log probability of var
having the
value that it has in this world, given that its parents have
the values specified in this world.
subject
that are consistent with the generating
function values of genericObj
and that make this
formula false in the given context, if this set can be
determined without enumerating possible values for
subject
.
f
in this POP's origin function
list, or -1 if it is not in the list.
g
on this object is
not determined.
v
.
childValue
given the argument values args
.
setString
PartialWorld.getLogProbOfValue(BayesNetVar)
in order to return the probability of a value given its parents.
reset
, and applying all the substring
replacement operations specified using addReplacement
since the last call to reset
.
subject
that are consistent with the generating
function values of genericObj
and that make this
formula true in the given context, if this set can be
determined without enumerating possible values for
subject
.
type
such that when var
is bound to o, the formula
cond
is satisfied in w
.
subst
to this expression, excluding the logical
variables in boundVars
.
extractMin
for efficiently getting
the minimum-cost element.get
returns an IndexedSet.sample
,
will yield the given element of this set.
k1
and k2
are coreferent,
that is, they are both keys that map to the same value.
elementSet
satisfy the constraints passed to the
constructor.
iterator
method returns an iterator over a finite set.
term
is exactly the logical variable
timeVar
.
term
is an application of the built-in
function BuiltInFunctions.PREV
to a term for which
isGivenTime
returns true, or has the form
t - 1
where isGivenTime(t)
returns true.
iterator(Collections.EMPTY_SET)
: that is, an
iterator that recognizes no externally distinguished objects.
skipIndistinguishable
method treats all of the given objects as distinguishable from all
other objects, even if they are indistinguishable in the underlying
partial world.
flag
argument
to indicate that the weights are given as (natural) logs.
Number
s.
x, y
that returns
x - y.
- MixtureDistrib - Class in blog.distrib
- A mixture of conditional probability distributions.
- MixtureDistrib(CondProbDistrib[], double[]) -
Constructor for class blog.distrib.MixtureDistrib
- Creates a new MixtureDistrib that combines the given
distributions according to the given probabilities.
- model() -
Method in class blog.BLOGParser
- Returns the model that this parser is using.
- model -
Variable in class blog.BLOGParser.ModelEvidenceQueries
-
- model -
Variable in class blog.GenericProposer
-
- model -
Variable in class blog.InferenceEngine
- The BLOG model on which this engine performs inference.
- Model - Class in blog
- This class contains all the information available about the structure of
the model.
- Model() -
Constructor for class blog.Model
- Class constructor.
- model -
Variable in class blog.Sampler
- BLOG model for which this sampler generates partial worlds.
- moveToBackground(Long) -
Method in class common.ReferenceHistogramPair
- Moves one reference referring to the given object from the
foreground to the background.
- moveToForeground(Long) -
Method in class common.ReferenceHistogramPair
- Moves one reference referring to the given object from the
background to the foreground.
- multichoose(int, int) -
Static method in class common.Util
- Returns the number of ways to make k choices from a set of n bins,
where the same bin may be chosen multiple times.
- MultiMap - Interface in common
- A map where keys are mapped to non-empty Set objects.
- MultiMap.EmptyMultiMap - Class in common
-
- MultiMap.EmptyMultiMap() -
Constructor for class common.MultiMap.EmptyMultiMap
-
- MultiMapDiff - Interface in common
- A MultiMap that is represented as a set of changes to some underlying
MultiMap.
- Multinomial - Class in common
- A distribution over a finite set of elements 0, 1, ..., k, specified with
an array of k probabilities pi_0,...,pi_k summing to 1.
- Multinomial(int) -
Constructor for class common.Multinomial
- Creates a Multinomial object representing the uniform distribution
over k elements.
- Multinomial(double[]) -
Constructor for class common.Multinomial
- Creates a Multinomial object with probabilities specified by the
given array.
- MultinomialWithTail - Class in common
- A mixture of a multinomial over the first k natural numbers 0,...,(k-1),
and a geometric distribution over the numbers >= k.
- MultinomialWithTail(int) -
Constructor for class common.MultinomialWithTail
- Creates a MultinomialWithTail with the given k.
- MultinomialWithTail(double[], double, double) -
Constructor for class common.MultinomialWithTail
- Creates a MultinomialWithTail with the given array of probabilities
for the multinomial distribution, and the given lambda and alpha
values.
- MULTIPLE_FUNCTIONS -
Static variable in class blog.Model
- Value returned by getRandomFunc when there are multiple random
functions with the given name.
- Multiset - Interface in common
- A multiset is like a set, except that it can include multiple copies of
an element.
- Multiset.Entry - Interface in common
- Interface for objects that represent entries in a multiset.
- MultisetBackedSet - Class in common
- An unmodifiable Set that is backed by a Multiset.
- MultisetBackedSet(Multiset) -
Constructor for class common.MultisetBackedSet
- Creates a new MultisetBackedSet backed by the given multiset.
- MultivarGaussian - Class in blog.distrib
- Gaussian (normal) distribution over real vectors of some fixed
dimensionality d.
- MultivarGaussian(Matrix, Matrix) -
Constructor for class blog.distrib.MultivarGaussian
- Creates a new MultivarGaussian distribution with the given mean
vector and covariance matrix.
- MultivarGaussian(List) -
Constructor for class blog.distrib.MultivarGaussian
- Sets mean and covariance and ensures that their dimensions match.
flag
argument indicating
that all flags are false.
x
: that is,
min(x, 0)
.
flag
argument
to indicate that the given weights are normalized (sum to 1).
getSatisfiersIfExplicit
and GetNonSatisfiersIfExplicit
to indicate that the
desired set cannot be determined without iterating over possible
values of the subject variable.
revert
method is called on the
PartialWorldDiff.
save
method is called on the
PartialWorldDiff.
obj
exists in all worlds
consistent with this context's partial world.
ObjectSet
.subjectVar
.
underlying
, and whose current version is set equal
to toCopy
.
ParticleFilter
.x, y
that returns
x + y.
- Poisson - Class in blog.distrib
- A Poisson distribution with mean and variance lambda.
- Poisson(List) -
Constructor for class blog.distrib.Poisson
- Creates a new Poisson distribution with the specifies lambda parameter.
- Poisson - Class in common
- A Poisson distribution with mean and variance lambda.
- Poisson() -
Constructor for class common.Poisson
- Creates a new Poisson distribution with lambda = 1.
- Poisson(double) -
Constructor for class common.Poisson
- Creates a new Poisson distribution with the specifies lambda parameter.
- pop() -
Method in class blog.NumberVar
- Returns the potential object pattern associated with this number
variable.
- POP - Class in blog
- Represents a potential object pattern (POP), which includes the type of
object to be generated and a tuple of origin functions.
- POP(Type, List, DependencyModel) -
Constructor for class blog.POP
- Creates a new potential object pattern for the given type and the
given tuple of origin functions, with the given dependency
model.
- POPAppBasedSet - Class in blog
- ObjectSet implementation that is composed of individual objects, plus
all the objects that satisfy certain potential object pattern (POP)
applications (number variables), with certain exceptional objects
excluded.
- POPAppBasedSet() -
Constructor for class blog.POPAppBasedSet
-
- popAppToAssertedIds -
Variable in class blog.AbstractPartialWorld
- Map from NumberVars to IndexedSets of the ObjectIdentifiers that are
asserted to satify them.
- popAppToAssertedIdsMap() -
Method in class blog.AbstractPartialWorld
-
- popAppToAssertedIdsMap() -
Method in interface blog.PartialWorld
- Map from POP applications (NumberVars) to IndexedSets of the
ObjectIdentifiers that are asserted to satisfy them.
- popAppToCommIds -
Variable in class blog.AbstractPartialWorld
- Map from NumberVars to IndexedSets of the common ground
ObjectIdentifiers (including asserted ones) that satisfy them.
- popEvaluee() -
Method in class blog.DefaultEvalContext
- Pops the top object from the stack of objects being evaluated.
- popEvaluee() -
Method in interface blog.EvalContext
- Pops the top object from the stack of objects being evaluated.
- PrecisionRecall - Class in common
- An object of class PrecisionRecall represents precision and recall
statistics for some experiment.
- PrecisionRecall(double, double) -
Constructor for class common.PrecisionRecall
- Creates a new PrecisionRecall object with the given precision and
recall.
- PrecisionRecall(int, int, int) -
Constructor for class common.PrecisionRecall
- Creates a new PrecisionRecall object for the given experimental
results.
- PRED -
Static variable in class blog.BuiltInFunctions
- The predecessor function on natural numbers.
- preimages -
Variable in class common.AbstractMapWithPreimages
- MultiMap from values in
map
to the keys for which they
serve as the value.
- PREV -
Static variable in class blog.BuiltInFunctions
- The predecessor function on timesteps.
- prev() -
Method in class blog.Timestep
-
- print(PrintStream) -
Method in class blog.AbstractPartialWorld
-
- print(PrintStream) -
Method in class blog.DependencyModel
- Prints this dependency model to the given stream.
- print(PrintStream) -
Method in class blog.Evidence
- Prints the evidence to the given stream.
- print(PrintStream) -
Method in class blog.Model
- Prints this model to the given stream.
- print(PrintStream) -
Method in class blog.NonRandomFunction
- Prints a description of this NonRandomFunction to the given stream.
- print(PrintStream) -
Method in interface blog.PartialWorld
- Prints this partial world to the given stream.
- print(PrintStream) -
Method in class blog.Type
- Prints the type name.
- print(PrintStream) -
Method in class common.AbstractDGraph
-
- print(PrintStream) -
Method in interface common.DGraph
- Prints a description of this graph to the given stream.
- print(PrintStream) -
Method in class common.Histogram
- Prints this histogram to the given stream.
- print() -
Method in class common.IndexedTreeSet
-
- printAllTimers() -
Static method in class common.Timer
- Prints the elapsed times for all timers created by the program.
- printDepStatement(PrintStream) -
Method in class blog.RandomFunction
- Prints the dependency statement for this function to the given stream.
- printEscapedString(PrintStream, String) -
Static method in class blog.ParserUtilities
- Prints an appropriately escaped string
- printEvalTrace(PrintStream) -
Method in class blog.DefaultEvalContext
- Prints the sequence of objects being evaluated, in the order they
were added to the stack, to the given stream.
- printEvalTrace(PrintStream) -
Method in interface blog.EvalContext
- Prints the sequence of objects being evaluated, in the order they
were added to the stack, to the given stream.
- printNumberStatement(PrintStream) -
Method in class blog.POP
- Prints the number statement for this POP to the given stream.
- printResults(PrintStream) -
Method in class blog.ArgSpecQuery
-
- printResults(PrintStream) -
Method in class blog.FormulaQuery
-
- printResults(PrintStream) -
Method in interface blog.Query
- Prints the results of this query to the given stream.
- printStats() -
Method in class blog.GenericProposer
-
- printStats() -
Method in class blog.LWSampler
- Print statistics gathered during sampling to standard out.
- printStats() -
Method in class blog.MHSampler
- Print statistics gathered during sampling to standard out.
- printStats() -
Method in interface blog.Proposer
- Prints any relevant statistics about the internal behavior of
this proposer.
- printStats() -
Method in class blog.RejectionSampler
-
- printStats() -
Method in class blog.Sampler
- Prints statistics about the internal activities of this sampler.
- printStats() -
Method in class blog.UrnBallsSplitMerge
-
- printStats() -
Method in class blog.UrnBallsSplitMergeNoIds
-
- printTimes(PrintStream, String, int) -
Static method in class blog.Main
- Print to the PrintStream ps the String s exactly n times, followed by a
newline.
- printToken(Symbol) -
Static method in class blog.ParserUtilities
- Prints a token to stderr
- printUsage(PrintStream) -
Static method in class common.cmdline.Parser
- Prints a usage message for the program to the given stream.
- printVarianceResults(PrintStream) -
Method in class blog.ArgSpecQuery
-
- printVarianceResults(PrintStream) -
Method in class blog.FormulaQuery
-
- printVarianceResults(PrintStream) -
Method in interface blog.Query
- Prints across-run statistics.
- PROB_COPY -
Static variable in class blog.distrib.StringEditModel
-
- PROB_DELETE -
Static variable in class blog.distrib.StringEditModel
-
- PROB_INSERT -
Static variable in class blog.distrib.StringEditModel
-
- PROB_INSERT_AT_END -
Static variable in class blog.distrib.StringEditModel
-
- PROB_STOP -
Static variable in class blog.distrib.StringEditModel
-
- PROB_SUBST -
Static variable in class blog.distrib.StringEditModel
-
- probDelete(String, int, String, int) -
Method in class blog.distrib.StringEditModel
- Returns the probability that the scribe moves his finger to the
next position without writing anything, given that:
the scribe's finger is before character
n
in
input
;
so far, he's written the substring of output
up to
(not including) index i
.
- probInsert(String, int, String, int, char) -
Method in class blog.distrib.StringEditModel
- Returns the probability that the scribe writes the character
outChar
without moving his finger, given that:
the scribe's finger is before character n
in
input
;
so far, he's written the substring of output
up to
(not including) index i
.
- probStop(String, int, String, int) -
Method in class blog.distrib.StringEditModel
- Returns the probability that the scribe stops writing, given that:
the scribe's finger is before character
n
in
input
;
so far, he's written the substring of output
up to
(not including) index i
.
- probSubst(String, int, String, int, char) -
Method in class blog.distrib.StringEditModel
- Returns the probability that the scribe writes character
outChar
and moves his finger to the next position,
given that:
the scribe's finger is before character n
in
input
;
so far, he's written the substring of output
up to
(not including) index i
.
- production_table() -
Method in class blog.BLOGParser
- Access to production table.
- PropertiesOption - Class in common.cmdline
- Option whose values are key-value pairs, represented as strings of the form
key=val.
- PropertiesOption(String, String, Properties, String) -
Constructor for class common.cmdline.PropertiesOption
- Creates a Properties option and registers it with the Parser
class.
- proposeNextState(PartialWorldDiff) -
Method in class blog.GenericProposer
- Proposes a next state for the Markov chain given the current state.
- proposeNextState(PartialWorldDiff) -
Method in interface blog.Proposer
- Proposes a next state for the Markov chain given the current state.
- proposeNextState(PartialWorldDiff) -
Method in class blog.UrnBallsSplitMerge
- Proposes a next state for the Markov chain given the current state.
- proposeNextState(PartialWorldDiff) -
Method in class blog.UrnBallsSplitMergeNoIds
- Proposes a next state for the Markov chain given the current state.
- proposer -
Variable in class blog.MHSampler
-
- Proposer - Interface in blog
- Interface for Metropolis-Hastings proposal distributions.
- PUNCT -
Static variable in class blog.distrib.StringEditModel
-
- PUNCT_PROB -
Static variable in class blog.distrib.StringEditModel
-
- pushEvaluee(Object) -
Method in class blog.DefaultEvalContext
- Pushes the given object onto the stack of objects being evaluated.
- pushEvaluee(Object) -
Method in interface blog.EvalContext
- Pushes the given object onto the stack of objects being evaluated.
- put(List, Object) -
Method in class blog.distrib.TabularInterp
- Adds the given argument-value mapping to this interpretation.
- put(Object, Object) -
Method in class common.AbstractMapWithPreimages
-
- put(Object, Object) -
Method in class common.HashMapDiff
-
- put(Object, Object) -
Method in class common.HashMultiMap
-
- put(Object, Object) -
Method in class common.HashMultiMapDiff
-
- put(Object, Object) -
Method in interface common.MultiMap
- Associates the given key with the given value, which must be a Set.
setQueries
.
initialize
, or null if initialize
has
not been called.
reduce_goto
table.
remove
method is not supported, because the
only way to remove a variable from the list of uninstantiated
variables is to instantiate it.
parent
to child
from
the graph.
orig
, and clears the
set of replacement operations.
InferenceEngine.setEvidence(Evidence)
(if it has not been invoked, empty evidence is assumed),
ensuring behavior consistent with other InferenceEngine
s.
x, y
that returns
x - y.
- RoundedLogNormal - Class in blog.distrib
- Distribution over positive integers for a random variable X = round(Y),
where Y has a log normal distribution.
- RoundedLogNormal(double, double) -
Constructor for class blog.distrib.RoundedLogNormal
- Creates a RoundedLogNormal distribution where Y has the given mean and
log(Y) has the given variance.
- RoundedLogNormal(List) -
Constructor for class blog.distrib.RoundedLogNormal
- Creates a RoundedLogNormal distribution with the given parameters.
- RoundedLogNormal - Class in common
- Distribution over positive integers for a random variable X = round(Y),
where Y has a log normal distribution.
- RoundedLogNormal(double, double) -
Constructor for class common.RoundedLogNormal
- Creates a RoundedLogNormal distribution where Y has the given mean and
log(Y) has the given variance.
- RPAREN -
Static variable in class blog.BLOGTokenConstants
-
- RPLUS -
Static variable in class blog.BuiltInFunctions
- The function on reals
x, y
that returns
x + y.
- rv() -
Method in class blog.POP
- Returns a basic random variable for this POP with no generating
objects.
- rv(Object) -
Method in class blog.POP
- Returns a basic random variable for this POP with the
given single generating object.
- rv(Object, Object) -
Method in class blog.POP
- Returns a basic random variable for this POP with the
given two generating objects.
- rv() -
Method in class blog.RandomFunction
- Returns a basic random variable for this function with no
arguments.
- rv(Object) -
Method in class blog.RandomFunction
- Returns a basic random variable for this function with the
given single argument.
- rv(Object, Object) -
Method in class blog.RandomFunction
- Returns a basic random variable for this function with the
given two arguments.
- RVECTOR -
Static variable in class blog.BuiltInTypes
- Supertype for real vectors, which are matrices with one column.
- rvWithArgs(Object[]) -
Method in class blog.POP
- Returns a basic random variable for this POP with the
given array of generating objects.
- rvWithArgs(Object[]) -
Method in class blog.RandomFunction
- Returns a basic random variable for this function with the
given array of arguments.
n is sampled uniformly
from the numbers 0, ..., size - 1 (where size is the
size of this set).
- sample(int) -
Method in class blog.POPAppBasedSet
-
- sample() -
Method in class common.Geometric
- Generate iid samples from this distribution
- sample() -
Method in class common.Histogram
-
- sample() -
Method in interface common.IntegerDist
-
- sample() -
Method in class common.LogHistogram
-
- sample() -
Method in class common.Multinomial
- Returns an integer chosen at random according to this distribution.
- sample() -
Method in class common.MultinomialWithTail
- Generates iid samples from this distribution
- sample() -
Method in class common.Poisson
- Returns an integer sampled according to this distribution.
- sample() -
Method in class common.SamplingMultiset
- Returns an object sampled uniformly from this multiset.
- sample() -
Method in interface common.SetWithDistrib
- Returns an object sampled according to this distribution.
- sampleIndex() -
Method in class common.ImplicitVector
- Returns an index sampled according to the probability distribution
represented this by this vector.
- Sampler - Class in blog
- An object that stochastically generates a sequence of samples,
which are possible worlds of a given BLOG model.
- Sampler(Model) -
Constructor for class blog.Sampler
- Creates a Sampler object for the given BLOG model.
- sampleVal(List, Type) -
Method in interface blog.CondProbDistrib
- Samples a value according to this CPD given the
args
.
- sampleVal(List, Type) -
Method in class blog.DetCondProbDistrib
-
- sampleVal() -
Method in class blog.distrib.Bernoulli
- Returns a boolean value sampled from this distribution.
- sampleVal(List, Type) -
Method in class blog.distrib.Bernoulli
-
- sampleVal(List, Type) -
Method in class blog.distrib.Beta
- Returns a double sampled according to this distribution.
- sampleVal(List, Type) -
Method in class blog.distrib.BinaryBernoulliDistrib
-
- sampleVal(List, Type) -
Method in class blog.distrib.Binomial
- Returns an integer sampled according to this distribution.
- sampleVal(List, Type) -
Method in class blog.distrib.BoundedGeometric
- Generates a sample from this distribution.
- sampleVal() -
Method in class blog.distrib.Categorical
- Returns an index sampled from this distribution.
- sampleVal(List, Type) -
Method in class blog.distrib.Categorical
- Returns a value sampled from the given child type according to this
distribution.
- sampleVal() -
Method in class blog.distrib.CharDistrib
- Returns a character selected randomly according to this distribution.
- sampleVal(List, Type) -
Method in class blog.distrib.CharDistrib
- Returns a Character object sampled randomly according to this
distribution.
- sampleVal(List, Type) -
Method in class blog.distrib.ChooseFromArgs
- Returns a value sampled according to this distribution.
- sampleVal(List, Type) -
Method in class blog.distrib.Exponential
- Returns a double sampled according to this distribution.
- sampleVal(List, Type) -
Method in class blog.distrib.Gamma
- Returns a double sampled according to this distribution.
- sampleVal(List, Type) -
Method in class blog.distrib.Geometric
- Generates a sample from this distribution.
- sampleVal() -
Method in class blog.distrib.Geometric
- Returns an integer sampled from this distribution.
- sampleVal(List, Type) -
Method in class blog.distrib.LinearGaussian
-
- sampleVal(List, Type) -
Method in class blog.distrib.MixtureDistrib
-
- sampleVal(List, Type) -
Method in class blog.distrib.MultivarGaussian
- Samples a value from this multivariate Gaussian by generating d
independent samples from univariate Gaussians with unit variance,
one for each dimension, and multiplying the obtained
vector on the left by the square root of sigma (Cholesky decomposition
of sigma).
- sampleVal() -
Method in class blog.distrib.MultivarGaussian
- Samples a value from this multivariate Gaussian by generating d
independent samples from univariate Gaussians with unit variance,
one for each mean in the mean vector, and multiplying the obtained
vector on the left by the square root of sigma (Cholesky decomposition
of sigma).
- sampleVal() -
Method in class blog.distrib.NatNumDistribWithTail
- Returns a sample from this distribution.
- sampleVal(List, Type) -
Method in class blog.distrib.NatNumDistribWithTail
- Returns an Integer sampled from this distribution.
- sampleVal(List, Type) -
Method in class blog.distrib.NegativeBinomial
- Returns a double sampled according to this distribution.
- sampleVal(List, Type) -
Method in class blog.distrib.Poisson
- Returns an integer sampled according to this distribution.
- sampleVal(List, Type) -
Method in class blog.distrib.RoundedLogNormal
-
- sampleVal(String) -
Method in class blog.distrib.StringEditModel
- Samples an output string given the string
input
- sampleVal(List, Type) -
Method in class blog.distrib.StringEditModel
-
- sampleVal(List, Type) -
Method in class blog.distrib.TabularCPD
-
- sampleVal(List, Type) -
Method in class blog.distrib.UniformChoice
- Takes a single argument, namely a finite set S.
- sampleVal(List, Type) -
Method in class blog.distrib.UniformInt
- Returns a sample from this distribution.
- sampleVal(List, Type) -
Method in class blog.distrib.UniformReal
- Returns a sample from this distribution.
- sampleVal(List, Type) -
Method in class blog.distrib.UniformVector
-
- sampleVal(List, Type) -
Method in class blog.distrib.UnivarGaussian
-
- sampleVal() -
Method in class blog.distrib.UnivarGaussian
- Returns a value sampled from this Gaussian distribution.
- sampleWithoutReplacement(List, int) -
Static method in class common.Util
- Returns a list of min(
list.size()
, n
)
objects sampled without replacement from list
.
- sampleWithProbs(double[]) -
Static method in class common.Util
- Returns an integer in the range {0, ..., probs.length - 1},
according to the distribution specified by probs.
- sampleWithWeights(double[], double) -
Static method in class common.Util
- Returns an integer in the range {0, ..., probs.length - 1},
according to the given weights.
- SamplingEngine - Class in blog
- Inference engine that answers queries by sampling partial worlds
(possibly with associated weights) from some sampling distribution,
and collecting statistics over these samples.
- SamplingEngine(Model, Properties) -
Constructor for class blog.SamplingEngine
- Creates a new sampling engine for the given BLOG model, with
configuration parameters specified by the given properties table.
- SamplingMultiset - Class in common
- Multiset that allows sampling, but not iteration or removals.
- SamplingMultiset() -
Constructor for class common.SamplingMultiset
- Creates a new, empty multiset.
- save() -
Method in class blog.PartialWorldDiff
- Changes the saved version of this world to equal the current version.
- ScannerWithLocInfo - Interface in common
- Extension of the Scanner interface that includes methods for getting
the current file and line number.
- SEMI -
Static variable in class blog.BLOGTokenConstants
-
- set(int, double) -
Method in class common.DenseVector
- Sets the value at the given index, filling in any gap between this
index and the previous highest explicit index with explicit zeroes.
- set -
Variable in class common.HashMultiMap.ValueSet
-
- set(int, double) -
Method in class common.ImplicitVector
-
- set(int, double) -
Method in class common.SparseVector
- Sets the value at the given index.
- setArgVars(List) -
Method in class blog.RandomFunction
- Sets the variables that will stand for the function arguments in
this function's dependency model.
- SetBackedMultiset - Class in common
- An unmodifiable Multiset implementation that just wraps around a
Set object.
- SetBackedMultiset(Set) -
Constructor for class common.SetBackedMultiset
- Creates a new SetBackedMultiset that will be backed by the given
set.
- setConstantInterp(Object) -
Method in class blog.NonRandomFunction
- Sets the interpretation of this function to be a ConstantInterp
with the given value.
- setDepModel(DependencyModel) -
Method in class blog.POP
-
- setDepModel(DependencyModel) -
Method in class blog.RandomFunction
-
- SetDiff - Interface in common
- Interface for sets that are represented in terms of additions and
removals relative to an underlying set.
- setEvidence(Evidence) -
Method in class blog.BLOGParser
- Sets the evidence object that this parser will use.
- setEvidence(Evidence) -
Method in class blog.InferenceEngine
- Sets the evidence to be conditioned on in the next call to
answerQueries
.
- setFilename(String) -
Method in class blog.BLOGLexer
-
- setGenObjVars(List) -
Method in class blog.POP
- Sets the variables that will stand for the generating objects in
this POP's dependency model.
- setInterpretation(FunctionInterp) -
Method in class blog.NonRandomFunction
- Sets the interpretation of this function.
- setInterpretation(Class, List) -
Method in class blog.NonRandomFunction
- Sets the interpretation of this function to be an instance of the
given class, constructed with the given parameters.
- setLocation(Object) -
Method in class blog.ArgSpec
- Sets the location of this ArgSpec, for instance, the file name and
line number where it appears.
- setLocation(Object) -
Method in class blog.Clause
- Sets the location of this clause, for instance, the file name and
line number where it appears.
- setModel(Model) -
Method in class blog.BLOGParser
- Sets the model that this parser will use.
- setPackagesToSearch(List) -
Static method in class blog.BLOGParser
- Sets the packages that will be searched before the default packages
when looking up class names (for CPDs, etc.).
- setParents(Object, Set) -
Method in class common.AbstractDGraph
- Implements setParents in terms of addEdge and removeEdge.
- setParents(Object, Set) -
Method in class common.DefaultDGraph
-
- setParents(Object, Set) -
Method in interface common.DGraph
- Changes the graph so that the parent set of the given node is the
given set.
- setParents(Object, Set) -
Method in class common.ParentUpdateDGraph
- Changes the parent set of the given node to equal the given set.
- setPosterior(Factor) -
Method in class blog.AbstractQuery
- Throws an UnsupportedOperationException.
- setPosterior(Factor) -
Method in class blog.ArgSpecQuery
-
- setPosterior(Factor) -
Method in class blog.FormulaQuery
-
- setPosterior(Factor) -
Method in interface blog.Query
- Sets the posterior distribution for the variables returned by
getVariables
.
- setProgramDesc(String) -
Static method in class common.cmdline.Parser
- Sets the program description that will be printed by
printUsage
.
- setQueries(List) -
Method in class blog.BLOGParser
- Sets the list to which queries (represented as Query objects) will be
appended.
- setQueries(List) -
Method in class blog.InferenceEngine
- Sets the queries to be answered in the next call to
answerQueries
.
- setString(String) -
Method in interface common.StringDistrib
- Sets the string to be used by subsequent calls to the substring
versions of
getProb
and getLogProb
.
- setup(Model, Evidence, List, Collection, Collection, boolean, boolean) -
Static method in class blog.Main
- Reads and prepares model, evidence and queries for inference.
- setUp() -
Method in class blog.ParticleFilterTest
- Sets particle filter properties to default values before every test.
- SetupExtender - Interface in blog
- Interface for objects that can extend the setup of a BLOG inference
problem: that is, the model, evidence, and query list.
- setUsageLine(String) -
Static method in class common.cmdline.Parser
- Sets the basic usage message that will be printed by
printUsage
.
- setValue(BasicVar, Object) -
Method in class blog.AbstractPartialWorld
-
- setValue(BasicVar, Object) -
Method in interface blog.PartialWorld
- Instantiates the given variable to the given value (replacing
any previous value), or uninstantiates the variable if the
given value is null.
- setValue(VarWithDistrib, Object) -
Method in class blog.WorldInProgress
-
- setValue(Object) -
Method in class blog.WorldInProgress.UninstVarIterator
- Instantiates the last variable returned by
next
to
the given value.
- setValue(Object) -
Method in class common.DefaultMapEntry
-
- setVerbose(boolean) -
Static method in class common.Util
- Sets a flag indicating whether the program should print extra
status messages.
- setWeight(int, int, double) -
Method in class common.BipartiteMatcher
- Sets the weight wij to the given value w.
- SetWithDistrib - Interface in common
- Interface for objects that represent a probability distribution over a set.
- setWorld(PartialWorld) -
Method in class blog.MHSampler
-
- setWorld(PartialWorld) -
Method in class blog.Particle
-
- shortForms -
Variable in class common.cmdline.AbstractOption
- List of Character objects that are short forms of this option.
- shuffle(List) -
Static method in class common.Util
- Randomly shuffles the given list, in a way such that all permutations
are equally likely.
- signifGreaterThan(double, double) -
Static method in class common.Util
- Returns true if
x
is greater than y
by
at least Util.TOLERANCE.
- signifLessThan(double, double) -
Static method in class common.Util
- Returns true if
x
is less than y
by
at least Util.TOLERANCE.
- SimpleInstEvalContext - Class in blog
- Evaluation context that instantiates random variables as needed, using
some very simple rules.
- SimpleInstEvalContext(PartialWorld) -
Constructor for class blog.SimpleInstEvalContext
- Creates a new SimpleInstEvalContext using the given world.
- singleton(Object) -
Static method in class blog.AbstractObjectSet
-
- size() -
Method in class blog.AbstractObjectSet
-
- size() -
Method in class blog.Substitution
-
- size() -
Method in class common.AbstractMapWithPreimages
-
- size() -
Method in class common.BinaryHeap
- Returns the number of entries in this heap.
- size -
Variable in class common.CartesianProduct
-
- size() -
Method in class common.CartesianProduct
-
- size() -
Method in class common.ExtensibleLinkedList
-
- size() -
Method in class common.FibHeap
-
- size() -
Method in class common.HashMapDiff
-
- size() -
Method in class common.HashMultiMap
-
- size() -
Method in class common.HashMultiMap.ValueSet
-
- size() -
Method in class common.HashMultiMapDiff
-
- size() -
Method in class common.HashMultiMapDiff.ValueSet
-
- size() -
Method in class common.HashMultiset
- Returns the sum of the occurrence counts of all items.
- size() -
Method in class common.HashSetDiff
-
- size() -
Method in class common.Histogram
- Returns the number of objects that have non-zero weight in
this histogram.
- size() -
Method in class common.IndexedHashSet
-
- size() -
Method in class common.IndexedHashSetDiff
-
- size() -
Method in class common.IndexedSet.EmptyIndexedSet
-
- size() -
Method in class common.IndexedTreeSet
-
- size() -
Method in class common.IndexedTreeSetDiff
-
- size() -
Method in class common.Multinomial
- Returns the size of the set that this distribution is defined over.
- size() -
Method in class common.MultisetBackedSet
- Returns the size of this set, which is the number of distinct
elements in the underlying multiset.
- size() -
Method in class common.SetBackedMultiset
- Returns the number of elements in this multiset.
- size() -
Method in class common.WeakHashSet
-
- sizeInternal() -
Method in class blog.AbstractObjectSet
- Returns the size of this set, or null if the underlying partial
world is not complete enough to determine the size.
- sizeInternal() -
Method in class blog.DefaultObjectSet
-
- sizeInternal() -
Method in class blog.POPAppBasedSet
-
- skipAfterNext() -
Method in class blog.AbstractObjectIterator
- Behaves like skipIndistinguishable, except it can assume that this
call to skipIndistinguishable comes immediately after a successful
call to
next
, with no intervening calls to
findNext
or any other methods.
- skipIndistinguishable() -
Method in class blog.AbstractObjectIterator
-
- skipIndistinguishable() -
Method in class blog.DefaultObjectIterator
-
- skipIndistinguishable() -
Method in interface blog.ObjectIterator
- Skips remaining objects that are indistinguishable from the
object returned by the last call to
next
.
- SkolemConstant - Class in blog
- Represents a skolem constant -- a constant introduced by symbol evidence
statements.
- SkolemConstant(String, ImplicitSetSpec, List) -
Constructor for class blog.SkolemConstant
- Creates a new SkolemConstant with the given name and return type.
- SORTED -
Static variable in class blog.distrib.Categorical
- Value that can be bitwise or'ed with a
flag
argument
to indicate that the weights are sorted in non-increasing order
(largest first).
- SPACE_PROB -
Static variable in class blog.distrib.StringEditModel
-
- spannedSubstring(String, int, int, int, int) -
Static method in class common.Util
- Returns the substring of
str
from
substringPairBegin(begin1, end1, begin2, end2)
to
substringPairEnd(begin1, end1, begin2, end2)
.
- SparseVector - Class in common
- Simple implementation of a sparse vector, that is, a vector of doubles
in which many elements are zero.
- SparseVector() -
Constructor for class common.SparseVector
- Creates a new vector with no non-zero entries.
- STANDARD -
Static variable in class blog.distrib.UnivarGaussian
-
- start() -
Method in class common.Timer
- Starts the timer.
- start_production() -
Method in class blog.BLOGParser
- Indicates start production.
- start_state() -
Method in class blog.BLOGParser
- Indicates start state.
- stop() -
Method in class common.Timer
- Stops the timer, and adds the time elapsed since the last call to
start() to the running total.
- STR_CONST -
Static variable in class blog.BLOGTokenConstants
-
- STRING -
Static variable in class blog.BuiltInTypes
- Type for finite strings of Unicode characters.
- StringDistrib - Interface in common
- Interface for objects that define probability distributions over strings.
- StringEditModel - Class in blog.distrib
- Represents a probability model for output strings Y given input
strings X.
- StringEditModel() -
Constructor for class blog.distrib.StringEditModel
-
- StringEditModel(List) -
Constructor for class blog.distrib.StringEditModel
- Creates a new StringEditModel.
- StringEditModelWithJumps - Class in blog.distrib
- Subclass of StringEditModel that allows "jumps", that is, deletions of
whole substrings of the original string (rather than just single
characters).
- StringEditModelWithJumps() -
Constructor for class blog.distrib.StringEditModelWithJumps
-
- StringEditModelWithJumps(List) -
Constructor for class blog.distrib.StringEditModelWithJumps
-
- StringListOption - Class in common.cmdline
- Option that can occur multiple times on the command line with a string
argument, yielding a list of strings.
- StringListOption(String, String, String) -
Constructor for class common.cmdline.StringListOption
- Creates a string list option and registers it with the Parser class.
- StringOption - Class in common.cmdline
- Option that takes string values.
- StringOption(String, String, String, String) -
Constructor for class common.cmdline.StringOption
- Creates a string option and registers it with the Parser class.
- stringSetup(Model, Evidence, List, String) -
Static method in class blog.Main
- A version of
Main.setup(Model, Evidence, List, Collection,
Collection, boolean, boolean)
receiving a single string, no setup extenders, and not verbose.
- subSet(Object, Object) -
Method in class common.IndexedTreeSet
-
- subSet(Object, Object) -
Method in class common.IndexedTreeSetDiff
-
- SubsetIterator - Class in common
- Class for iterating over all subsets of an ordered set.
- SubsetIterator(int) -
Constructor for class common.SubsetIterator
- Creates a new SubsetIterator over a set of size n.
- Substitution - Class in blog
- A mapping from logical variables to terms.
- Substitution() -
Constructor for class blog.Substitution
- Creates a new "empty" substitution that does not change anything.
- Substitution(List<LogicalVar>, List<? extends Term>) -
Constructor for class blog.Substitution
- Creates a new substitution that maps the given list of logical
variables respectively to the given list of terms.
- substringPairBegin(int, int, int, int) -
Static method in class common.Util
- Given two substrings defined by "begin" and "end" indices in some
original string, returns the index of the first character that is
in either of these two strings, or 0 if both strings are empty.
- substringPairEnd(int, int, int, int) -
Static method in class common.Util
- Given two substrings defined by "begin" and "end" indices in some
original string, returns one plus the index of the last character that
is in one of these two strings, or 0 if both strings are empty.
- SubstringReplacer - Class in common
- A SubstringReplacer is an engine for replacing substrings of a given string.
- SubstringReplacer() -
Constructor for class common.SubstringReplacer
- Creates a new SubstringReplacer.
- SubstringReplacer(String) -
Constructor for class common.SubstringReplacer
- Creates a new SubstringReplacer with the given original string.
- SUCC -
Static variable in class blog.BuiltInFunctions
- The successor function on natural numbers.
- sum() -
Method in class common.ImplicitVector
- Returns the sum of the entries in this vector.
- SymbolEvidenceStatement - Class in blog
- Represents a symbol evidence statement, which is of the form
type_name var_name:cond_formula = { symbol_list }.
- SymbolEvidenceStatement(ImplicitSetSpec, List) -
Constructor for class blog.SymbolEvidenceStatement
- Creates a new SymbolEvidenceStatement saying that the objects
satisfying the given implicit set specification are referred to by
the given constant symbols.
- SymbolTerm - Class in blog
- A term consisting of a single symbol.
- SymbolTerm(String) -
Constructor for class blog.SymbolTerm
- Creates a new SymbolTerm with the given symbol.
- syntax_error(Symbol) -
Method in class blog.BLOGParser
-
f
on
all tuples of arguments of the form (arg1, ..., argK, i) where
(arg1, ..., argK) are given by initialArgs
and
i is greater than or equal to len
.
pop
on
all tuples of arguments of the form (arg1, ..., argK, i) where
(arg1, ..., argK) are given by initialArgs
and
i is greater than or equal to len
.
supertype
.
supertype
.
varToLogProbMap
and derivedVarToValueMap
for basic variables that
are not supported in the world, and for derived variables whose
values are not determined.
accepted
is true) or rejected
(if accepted
is false).
1/((x+\delta)^n), \delta > 0
.n
= 2..
leftSide
= output
.
Number
s.
x
, y
that returns
the element-wise difference of x
and y
.
x
, y
that returns
the element-wise sum of x
and y
.
reduce_goto
table.
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |