S
- The type of belief bases sampledpublic abstract class BeliefBaseSampler<S extends BeliefBase>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAXIMUM_BELIEFBASE_LENGTH
This constant specifies the default maximum length for sampled
belief bases.
|
static int |
DEFAULT_MINIMUM_BELIEFBASE_LENGTH
This constant specifies the default minimum length for sampled
belief bases.
|
private Signature |
signature
The signature of this sampler.
|
Constructor and Description |
---|
BeliefBaseSampler(Signature signature)
Creates a new belief base sampler for the given signature.
|
Modifier and Type | Method and Description |
---|---|
Signature |
getSignature()
Returns the signature of this sampler.
|
S |
randomSample()
This method randomly samples a single belief base of the given signature
with the default maximum belief base length.
|
abstract S |
randomSample(int minLength,
int maxLength)
This method randomly samples a single belief base of the given signature
with the given belief base length.
|
java.util.Collection<S> |
randomSample(int minLength,
int maxLength,
int numBeliefBases)
This method randomly samples a total of "numBeliefBases" of the given
signature and maximum belief base length.
|
private Signature signature
public static final int DEFAULT_MAXIMUM_BELIEFBASE_LENGTH
public static final int DEFAULT_MINIMUM_BELIEFBASE_LENGTH
public BeliefBaseSampler(Signature signature)
signature
- a signature.public abstract S randomSample(int minLength, int maxLength)
minLength
- the minimum length of the belief base.maxLength
- the maximum length of the belief base.public S randomSample()
public java.util.Collection<S> randomSample(int minLength, int maxLength, int numBeliefBases)
minLength
- the minimum length of the belief base.maxLength
- the maximum length of the belief base.numBeliefBases
- the number of belief bases to be sampled.public Signature getSignature()